home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / sonido / studio.000 / studio
Tape Archive  |  1995-07-11  |  780.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Tape Archive (archive/tar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file POSIX tar archive (GNU) default
99% file POSIX tar archive (GNU), directory Ss/, mode 40755 , uid 32375 , gid 13104 , size 0 , seconds 6000521431, user een6njb default
98% file data default
41% TrID Sybase iAnywhere database files default (weak)
36% TrID TAR - Tape ARchive (GNU) default
21% TrID TAR - Tape ARchive (directory) default
100% dearkID deark: tar default
100% siegfried x-fmt/265 Tape Archive Format default
100% lsar Tar default (weak)
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype GNU tar archive default
100% detectItEasy Archive: tar default
100% binwalkID POSIX tar archive (GNU) default
100% xdgMime application/x-tar default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 53 73 2f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |Ss/.....|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 34 30 37 | 35 35 20 00 20 33 32 33 |.... 407|55 . 323|
|00000070| 37 35 20 00 20 31 33 31 | 30 34 20 00 20 20 20 20 |75 . 131|04 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 36 30 30 30 35 32 31 | 0 | 6000521|
|00000090| 34 33 31 20 20 20 37 33 | 31 31 00 20 35 00 00 00 |431 73|11. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 20 20 | 00 65 65 6e 36 6e 6a 62 |.ustar |.een6njb|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 53 73 2f 72 65 61 64 6d | 65 2e 73 73 00 00 00 00 |Ss/readm|e.ss....|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 33 32 33 |....1006|44 . 323|
|00000270| 37 35 20 00 20 31 33 31 | 30 34 20 00 20 20 20 20 |75 . 131|04 . |
|00000280| 20 20 20 31 36 32 35 20 | 20 35 37 35 34 33 36 37 | 1625 | 5754367|
|00000290| 30 31 31 20 20 31 31 32 | 33 37 00 20 30 00 00 00 |011 112|37. 0...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 75 73 74 61 72 20 20 | 00 65 65 6e 36 6e 6a 62 |.ustar |.een6njb|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 57 65 6c 63 6f 6d 65 20 | 74 6f 20 53 6f 75 6e 64 |Welcome |to Sound|
|00000410| 20 53 74 75 64 69 6f 2e | 0a 0a 54 68 69 73 20 69 | Studio.|..This i|
|00000420| 73 20 61 20 67 72 61 70 | 68 69 63 61 6c 20 73 6f |s a grap|hical so|
|00000430| 75 6e 64 20 73 61 6d 70 | 6c 65 20 65 64 69 74 6f |und samp|le edito|
|00000440| 72 2c 20 77 69 74 68 20 | 72 65 63 6f 72 64 69 6e |r, with |recordin|
|00000450| 67 20 61 6e 64 20 70 6c | 61 79 62 61 63 6b 20 66 |g and pl|ayback f|
|00000460| 61 63 69 6c 69 74 69 65 | 73 20 61 6e 64 20 61 20 |acilitie|s and a |
|00000470| 62 75 69 74 2d 69 6e 20 | 67 72 61 70 68 69 63 61 |buit-in |graphica|
|00000480| 6c 20 6d 69 78 65 72 2c | 20 66 6f 72 20 4c 69 6e |l mixer,| for Lin|
|00000490| 75 78 2e 0a 0a 57 72 69 | 74 74 65 6e 20 62 79 20 |ux...Wri|tten by |
|000004a0| 50 61 75 6c 20 44 2e 20 | 53 68 61 72 70 65 20 31 |Paul D. |Sharpe 1|
|000004b0| 39 39 34 2d 31 39 39 35 | 2c 20 4c 65 65 64 73 2c |994-1995|, Leeds,|
|000004c0| 20 55 4b 2e 0a 54 6f 20 | 64 65 63 6f 6d 70 72 65 | UK..To |decompre|
|000004d0| 73 73 20 75 73 65 3a 0a | 09 09 09 74 61 72 20 78 |ss use:.|...tar x|
|000004e0| 76 7a 66 20 73 74 75 64 | 69 6f 2e 74 67 7a 0a 54 |vzf stud|io.tgz.T|
|000004f0| 68 69 73 20 63 6f 6e 74 | 61 69 6e 73 20 0a 09 31 |his cont|ains ..1|
|00000500| 2e 20 65 78 65 63 75 74 | 61 62 6c 65 20 54 43 4c |. execut|able TCL|
|00000510| 2f 74 6b 20 73 63 72 69 | 70 74 0a 09 32 2e 20 73 |/tk scri|pt..2. s|
|00000520| 6f 75 72 63 65 20 43 20 | 63 6f 64 65 20 66 6f 72 |ource C |code for|
|00000530| 20 73 74 75 64 69 6f 20 | 63 6f 6d 70 6f 6e 65 6e | studio |componen|
|00000540| 74 73 0a 09 33 2e 20 69 | 63 6f 6e 73 20 66 6f 72 |ts..3. i|cons for|
|00000550| 20 75 73 65 20 69 6e 20 | 73 74 75 64 69 6f 2e 0a | use in |studio..|
|00000560| 09 34 2e 20 74 68 65 20 | 6f 6e 2d 6c 69 6e 65 20 |.4. the |on-line |
|00000570| 68 65 6c 70 20 74 65 78 | 74 0a 09 35 2e 20 74 68 |help tex|t..5. th|
|00000580| 65 20 73 74 75 64 69 6f | 20 70 6f 73 74 2d 73 63 |e studio| post-sc|
|00000590| 72 69 70 74 20 6d 61 6e | 75 61 6c 20 28 7a 69 70 |ript man|ual (zip|
|000005a0| 70 65 64 29 2e 0a 09 36 | 2e 20 61 20 63 6f 6d 70 |ped)...6|. a comp|
|000005b0| 69 6c 65 64 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 |iled ver|sion of |
|000005c0| 53 6f 78 20 28 4c 69 6e | 75 78 20 70 61 74 63 68 |Sox (Lin|ux patch|
|000005d0| 29 20 61 6e 64 20 6d 61 | 6e 75 61 6c 20 70 61 67 |) and ma|nual pag|
|000005e0| 65 2e 0a 09 37 2e 20 74 | 68 65 20 7a 69 70 70 65 |e...7. t|he zippe|
|000005f0| 64 2d 61 72 63 68 69 76 | 65 20 6f 66 20 74 68 65 |d-archiv|e of the|
|00000600| 20 73 6f 78 20 73 6f 75 | 72 63 65 2e 0a 54 6f 20 | sox sou|rce..To |
|00000610| 63 6f 6d 70 69 6c 65 20 | 73 74 75 64 69 6f 20 74 |compile |studio t|
|00000620| 79 70 65 3b 0a 09 09 09 | 4d 61 6b 65 46 69 6c 65 |ype;....|MakeFile|
|00000630| 20 3c 52 65 74 75 72 6e | 3e 0a 69 6e 20 74 68 65 | <Return|>.in the|
|00000640| 20 64 69 72 65 63 74 6f | 72 79 20 63 6f 6e 74 61 | directo|ry conta|
|00000650| 69 6e 69 6e 67 20 74 68 | 65 20 73 74 75 64 69 6f |ining th|e studio|
|00000660| 20 66 69 6c 65 73 2e 20 | 54 68 65 6e 20 65 64 69 | files. |Then edi|
|00000670| 74 2c 69 66 20 6e 65 63 | 65 73 73 61 72 79 2c 20 |t,if nec|essary, |
|00000680| 74 68 65 20 70 61 74 68 | 20 6e 61 6d 65 73 20 69 |the path| names i|
|00000690| 6e 20 74 68 65 20 66 69 | 6c 65 20 6e 61 6d 65 64 |n the fi|le named|
|000006a0| 20 73 74 75 64 69 6f 2e | 0a 0a 54 6f 20 72 75 6e | studio.|..To run|
|000006b0| 20 73 74 75 64 69 6f 2c | 20 65 6e 74 65 72 20 74 | studio,| enter t|
|000006c0| 68 65 20 63 6f 6d 6d 61 | 6e 64 2c 20 73 74 75 64 |he comma|nd, stud|
|000006d0| 69 6f 2c 20 66 72 6f 6d | 20 61 20 73 68 65 6c 6c |io, from| a shell|
|000006e0| 2d 74 6f 6f 6c 20 72 75 | 6e 6e 69 6e 67 20 69 6e |-tool ru|nning in|
|000006f0| 20 58 2d 77 69 6e 64 6f | 77 73 2e 0a 0a 54 6f 20 | X-windo|ws...To |
|00000700| 75 6e 63 6f 6d 70 72 65 | 73 73 20 74 68 65 20 6d |uncompre|ss the m|
|00000710| 61 6e 75 61 6c 20 73 69 | 6d 70 6c 79 20 74 79 70 |anual si|mply typ|
|00000720| 65 3b 09 20 67 75 6e 7a | 69 70 20 73 74 75 64 69 |e;. gunz|ip studi|
|00000730| 6f 5f 6d 61 6e 2e 70 73 | 2e 67 7a 0a 0a 41 6e 79 |o_man.ps|.gz..Any|
|00000740| 20 70 72 6f 62 6c 65 6d | 73 3f 20 45 2d 6d 61 69 | problem|s? E-mai|
|00000750| 6c 20 6d 65 20 61 74 20 | 65 65 6e 32 70 64 73 40 |l me at |een2pds@|
|00000760| 73 75 6e 2e 6c 65 65 64 | 73 2e 61 63 2e 75 6b 20 |sun.leed|s.ac.uk |
|00000770| 6f 72 20 65 65 6e 32 70 | 64 73 40 65 63 75 2d 30 |or een2p|ds@ecu-0|
|00000780| 31 2e 6e 6f 76 65 6c 6c | 2e 6c 65 65 64 73 2e 61 |1.novell|.leeds.a|
|00000790| 63 2e 75 6b 0a 00 00 00 | 00 00 00 00 00 00 00 00 |c.uk....|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 53 73 2f 65 64 69 74 2e | 74 6b 00 00 00 00 00 00 |Ss/edit.|tk......|
|00000810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 33 32 33 |....1006|44 . 323|
|00000870| 37 35 20 00 20 31 33 31 | 30 34 20 00 20 20 20 20 |75 . 131|04 . |
|00000880| 20 20 34 36 30 35 30 20 | 20 35 37 34 32 34 34 33 | 46050 | 5742443|
|00000890| 34 36 32 20 20 31 30 37 | 34 33 00 20 30 00 00 00 |462 107|43. 0...|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 75 73 74 61 72 20 20 | 00 65 65 6e 36 6e 6a 62 |.ustar |.een6njb|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000a10| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000a20| 23 0a 23 20 54 68 65 20 | 45 64 69 74 20 4d 6f 64 |#.# The |Edit Mod|
|00000a30| 75 6c 65 0a 23 0a 23 20 | 50 61 72 74 20 6f 66 20 |ule.#.# |Part of |
|00000a40| 74 68 65 20 53 68 61 72 | 70 65 53 6f 75 6e 64 20 |the Shar|peSound |
|00000a50| 45 64 69 74 6f 72 0a 23 | 20 62 79 20 50 61 75 6c |Editor.#| by Paul|
|00000a60| 20 44 2e 20 53 68 61 72 | 70 65 0a 23 20 41 20 33 | D. Shar|pe.# A 3|
|00000a70| 72 64 20 59 65 61 72 20 | 50 72 6f 6a 65 63 74 20 |rd Year |Project |
|00000a80| 61 74 20 74 68 65 20 55 | 6e 69 76 65 72 73 69 74 |at the U|niversit|
|00000a90| 79 20 6f 66 20 4c 65 65 | 64 73 3b 0a 23 20 44 65 |y of Lee|ds;.# De|
|00000aa0| 70 61 72 74 6d 65 6e 74 | 20 6f 66 20 45 6c 65 63 |partment| of Elec|
|00000ab0| 74 72 6f 6e 69 63 20 61 | 6e 64 20 45 6c 65 63 74 |tronic a|nd Elect|
|00000ac0| 72 69 63 61 6c 20 45 6e | 67 69 6e 65 65 72 69 6e |rical En|gineerin|
|00000ad0| 67 2e 0a 23 20 44 61 74 | 65 3a 20 32 37 2f 32 2f |g..# Dat|e: 27/2/|
|00000ae0| 39 35 0a 23 0a 23 20 52 | 65 76 69 73 69 6f 6e 3a |95.#.# R|evision:|
|00000af0| 31 0a 23 20 44 61 74 65 | 3a 20 31 30 2f 34 2f 39 |1.# Date|: 10/4/9|
|00000b00| 35 0a 0a 0a 23 23 23 23 | 23 23 23 23 23 23 23 23 |5...####|########|
|00000b10| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000b20| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000b30| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000b40| 23 23 23 23 23 23 23 0a | 23 20 55 6e 64 6f 0a 23 |#######.|# Undo.#|
|00000b50| 20 54 68 69 73 20 70 72 | 6f 63 65 64 75 72 65 20 | This pr|ocedure |
|00000b60| 69 73 20 74 68 65 20 63 | 61 6c 6c 62 61 63 6b 20 |is the c|allback |
|00000b70| 74 6f 20 74 68 65 20 45 | 64 69 74 2d 55 6e 64 6f |to the E|dit-Undo|
|00000b80| 20 6d 65 6e 75 20 69 74 | 65 6d 2e 0a 23 20 49 74 | menu it|em..# It|
|00000b90| 20 72 65 70 6c 61 63 65 | 73 20 74 68 65 20 77 6f | replace|s the wo|
|00000ba0| 72 6b 69 6e 67 20 74 65 | 6d 70 6f 72 61 72 79 20 |rking te|mporary |
|00000bb0| 66 69 6c 65 20 77 69 74 | 68 20 74 68 65 20 75 6e |file wit|h the un|
|00000bc0| 64 6f 20 66 69 6c 65 20 | 28 54 4d 50 34 29 2c 0a |do file |(TMP4),.|
|00000bd0| 23 20 74 68 75 73 20 64 | 69 73 63 61 72 64 69 6e |# thus d|iscardin|
|00000be0| 67 20 61 6c 6c 20 65 64 | 69 74 73 2e 0a 70 72 6f |g all ed|its..pro|
|00000bf0| 63 20 55 6e 64 6f 20 7b | 7d 20 7b 0a 20 20 20 67 |c Undo {|} {. g|
|00000c00| 6c 6f 62 61 6c 20 46 4c | 41 47 20 46 49 4c 45 0a |lobal FL|AG FILE.|
|00000c10| 0a 20 20 20 23 20 4f 6e | 6c 79 20 74 61 6b 65 20 |. # On|ly take |
|00000c20| 61 63 74 69 6f 6e 20 69 | 66 20 74 68 65 20 66 69 |action i|f the fi|
|00000c30| 6c 65 20 68 61 73 20 62 | 65 65 6e 20 65 64 69 74 |le has b|een edit|
|00000c40| 65 64 20 61 6e 64 20 74 | 68 65 72 65 20 69 73 20 |ed and t|here is |
|00000c50| 61 6e 20 75 6e 64 6f 20 | 66 69 6c 65 2e 0a 20 20 |an undo |file.. |
|00000c60| 20 69 66 20 7b 24 46 4c | 41 47 28 45 64 69 74 65 | if {$FL|AG(Edite|
|00000c70| 64 29 20 26 26 20 5b 66 | 69 6c 65 20 65 78 69 73 |d) && [f|ile exis|
|00000c80| 74 73 20 24 46 49 4c 45 | 28 54 4d 50 34 29 5d 7d |ts $FILE|(TMP4)]}|
|00000c90| 20 7b 0a 09 23 20 49 6e | 64 69 63 61 74 65 20 74 | {..# In|dicate t|
|00000ca0| 68 61 74 20 74 68 65 72 | 65 20 77 69 6c 6c 20 62 |hat ther|e will b|
|00000cb0| 65 20 61 20 64 65 6c 61 | 79 2e 0a 20 20 20 09 57 |e a dela|y.. .W|
|00000cc0| 61 69 74 50 6c 65 61 73 | 65 0a 0a 09 23 20 52 65 |aitPleas|e...# Re|
|00000cd0| 70 6c 61 63 65 20 74 68 | 65 20 57 6f 72 6b 69 6e |place th|e Workin|
|00000ce0| 67 20 66 69 6c 65 20 77 | 69 74 68 20 74 68 65 20 |g file w|ith the |
|00000cf0| 75 6e 64 6f 20 66 69 6c | 65 2e 0a 20 20 20 09 65 |undo fil|e.. .e|
|00000d00| 78 65 63 20 6d 76 20 24 | 46 49 4c 45 28 54 4d 50 |xec mv $|FILE(TMP|
|00000d10| 34 29 20 24 46 49 4c 45 | 28 54 4d 50 31 29 0a 09 |4) $FILE|(TMP1)..|
|00000d20| 46 69 6c 6c 50 6c 6f 74 | 20 20 0a 09 57 61 69 74 |FillPlot| ..Wait|
|00000d30| 50 6c 65 61 73 65 20 30 | 0a 20 20 20 7d 0a 7d 0a |Please 0|. }.}.|
|00000d40| 0a 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |.#######|########|
|00000d50| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000d60| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000d70| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000d80| 23 23 23 23 0a 23 20 47 | 65 74 57 6f 72 64 53 69 |####.# G|etWordSi|
|00000d90| 7a 65 0a 23 20 54 68 69 | 73 20 66 75 6e 63 74 69 |ze.# Thi|s functi|
|00000da0| 6f 6e 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 6e |on retur|ns the n|
|00000db0| 75 6d 62 65 72 20 6f 66 | 20 62 79 74 65 73 20 70 |umber of| bytes p|
|00000dc0| 65 72 20 73 61 6d 70 6c | 65 20 6f 66 20 74 68 65 |er sampl|e of the|
|00000dd0| 20 63 75 72 72 65 6e 74 | 0a 23 20 73 61 6d 70 6c | current|.# sampl|
|00000de0| 65 2e 0a 70 72 6f 63 20 | 47 65 74 57 6f 72 64 53 |e..proc |GetWordS|
|00000df0| 69 7a 65 20 7b 7d 20 7b | 0a 20 20 20 67 6c 6f 62 |ize {} {|. glob|
|00000e00| 61 6c 20 4c 4f 41 44 0a | 0a 20 20 20 23 20 53 69 |al LOAD.|. # Si|
|00000e10| 6e 63 65 20 62 69 74 20 | 72 65 73 6f 6c 75 74 69 |nce bit |resoluti|
|00000e20| 6f 6e 73 20 61 72 65 20 | 6d 75 6c 74 69 70 6c 65 |ons are |multiple|
|00000e30| 73 20 6f 66 20 38 20 28 | 38 2c 31 36 2c 33 32 2e |s of 8 (|8,16,32.|
|00000e40| 2e 29 20 75 73 65 20 62 | 69 74 20 73 68 69 66 74 |.) use b|it shift|
|00000e50| 69 6e 67 20 74 6f 20 67 | 65 74 0a 20 20 20 23 20 |ing to g|et. # |
|00000e60| 63 6f 72 72 65 73 70 6f | 6e 64 69 6e 67 20 62 79 |correspo|nding by|
|00000e70| 74 65 73 20 28 31 2c 32 | 2c 34 2e 2e 29 20 61 6e |tes (1,2|,4..) an|
|00000e80| 64 20 6d 75 6c 74 69 70 | 6c 79 20 62 79 20 6e 75 |d multip|ly by nu|
|00000e90| 6d 62 65 72 20 6f 66 20 | 63 68 61 6e 6e 65 6c 73 |mber of |channels|
|00000ea0| 2e 0a 20 20 20 20 20 73 | 65 74 20 62 79 74 65 73 |.. s|et bytes|
|00000eb0| 20 5b 65 78 70 72 20 28 | 24 4c 4f 41 44 28 62 69 | [expr (|$LOAD(bi|
|00000ec0| 74 29 3e 3e 33 29 2a 28 | 24 4c 4f 41 44 28 63 68 |t)>>3)*(|$LOAD(ch|
|00000ed0| 6e 6c 29 29 5d 0a 0a 20 | 20 20 23 20 52 65 74 75 |nl))].. | # Retu|
|00000ee0| 72 6e 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |rn the n|umber of|
|00000ef0| 20 62 79 74 65 73 0a 20 | 20 20 20 20 72 65 74 75 | bytes. | retu|
|00000f00| 72 6e 20 24 62 79 74 65 | 73 0a 7d 0a 0a 0a 23 23 |rn $byte|s.}...##|
|00000f10| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000f20| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000f30| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000f40| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000f50| 23 0a 23 20 43 6f 70 79 | 0a 23 20 54 68 69 73 20 |#.# Copy|.# This |
|00000f60| 70 72 6f 63 65 64 75 72 | 65 20 69 73 20 74 68 65 |procedur|e is the|
|00000f70| 20 63 61 6c 6c 62 61 63 | 6b 20 74 6f 20 74 68 65 | callbac|k to the|
|00000f80| 20 45 64 69 74 2d 43 6f | 70 79 20 6d 65 6e 75 20 | Edit-Co|py menu |
|00000f90| 69 74 65 6d 2e 0a 23 20 | 49 74 20 63 6f 70 69 65 |item..# |It copie|
|00000fa0| 73 20 74 68 65 20 63 6f | 6e 74 65 6e 74 73 20 6f |s the co|ntents o|
|00000fb0| 66 20 74 68 65 20 6d 61 | 72 6b 65 64 20 61 72 65 |f the ma|rked are|
|00000fc0| 61 20 69 6e 74 6f 20 74 | 68 65 20 66 69 6c 65 20 |a into t|he file |
|00000fd0| 73 70 65 63 69 66 69 65 | 64 20 0a 23 20 62 79 20 |specifie|d .# by |
|00000fe0| 74 68 65 20 70 61 72 61 | 6d 65 74 65 72 2c 20 66 |the para|meter, f|
|00000ff0| 69 6c 65 2e 20 0a 23 20 | 54 68 65 20 64 65 66 61 |ile. .# |The defa|
|00001000| 75 6c 74 20 66 69 6c 65 | 20 69 73 20 74 68 65 20 |ult file| is the |
|00001010| 63 6c 69 70 62 6f 61 72 | 64 20 66 69 6c 65 28 54 |clipboar|d file(T|
|00001020| 4d 50 32 29 2e 0a 70 72 | 6f 63 20 43 6f 70 79 20 |MP2)..pr|oc Copy |
|00001030| 7b 7b 66 69 6c 65 20 64 | 65 66 61 75 6c 74 7d 7d |{{file d|efault}}|
|00001040| 20 7b 0a 20 20 20 67 6c | 6f 62 61 6c 20 46 4c 41 | {. gl|obal FLA|
|00001050| 47 20 50 4c 4f 54 20 46 | 49 4c 45 0a 0a 20 20 20 |G PLOT F|ILE.. |
|00001060| 23 20 41 73 73 69 67 6e | 20 64 65 66 61 75 6c 74 |# Assign| default|
|00001070| 20 66 69 6c 65 20 74 6f | 20 62 65 20 74 68 65 20 | file to| be the |
|00001080| 63 6c 69 70 62 6f 61 72 | 64 2e 20 0a 20 20 20 69 |clipboar|d. . i|
|00001090| 66 20 7b 20 24 66 69 6c | 65 20 3d 3d 22 64 65 66 |f { $fil|e =="def|
|000010a0| 61 75 6c 74 22 20 7d 20 | 7b 0a 09 73 65 74 20 66 |ault" } |{..set f|
|000010b0| 69 6c 65 20 24 46 49 4c | 45 28 54 4d 50 32 29 0a |ile $FIL|E(TMP2).|
|000010c0| 09 73 65 74 20 46 4c 41 | 47 28 43 6c 69 70 29 20 |.set FLA|G(Clip) |
|000010d0| 31 0a 20 20 20 7d 0a 0a | 20 20 20 23 20 4f 6e 6c |1. }..| # Onl|
|000010e0| 79 20 74 61 6b 65 20 61 | 63 74 69 6f 6e 20 69 66 |y take a|ction if|
|000010f0| 20 74 68 65 72 65 20 69 | 73 20 61 20 6d 61 72 6b | there i|s a mark|
|00001100| 65 64 20 61 72 65 61 2e | 0a 20 20 20 69 66 20 7b |ed area.|. if {|
|00001110| 24 46 4c 41 47 28 4d 61 | 72 6b 65 64 29 7d 20 7b |$FLAG(Ma|rked)} {|
|00001120| 0a 0a 09 23 20 49 6e 64 | 69 63 61 74 65 20 74 68 |...# Ind|icate th|
|00001130| 61 74 20 74 68 65 72 65 | 20 77 69 6c 6c 20 62 65 |at there| will be|
|00001140| 20 61 20 64 65 6c 61 79 | 0a 09 57 61 69 74 50 6c | a delay|..WaitPl|
|00001150| 65 61 73 65 0a 09 0a 09 | 23 20 47 65 74 20 74 68 |ease....|# Get th|
|00001160| 65 20 73 69 7a 65 20 6f | 66 20 74 68 65 20 73 61 |e size o|f the sa|
|00001170| 6d 70 6c 65 73 20 69 6e | 20 62 79 74 65 73 0a 09 |mples in| bytes..|
|00001180| 73 65 74 20 62 79 74 65 | 73 20 5b 47 65 74 57 6f |set byte|s [GetWo|
|00001190| 72 64 53 69 7a 65 5d 0a | 0a 09 23 20 53 65 74 20 |rdSize].|..# Set |
|000011a0| 74 68 65 20 62 79 74 65 | 73 20 74 6f 20 73 6b 69 |the byte|s to ski|
|000011b0| 70 20 61 6e 64 20 63 6f | 75 6e 74 2c 20 66 6f 72 |p and co|unt, for|
|000011c0| 20 74 68 65 20 22 64 64 | 22 20 6f 70 65 72 61 74 | the "dd|" operat|
|000011d0| 69 6f 6e 20 6c 61 74 65 | 72 2e 0a 09 23 20 54 68 |ion late|r...# Th|
|000011e0| 65 20 22 69 66 22 20 73 | 74 61 74 65 6d 65 6e 74 |e "if" s|tatement|
|000011f0| 20 69 73 20 6e 65 63 65 | 73 73 61 72 79 20 73 69 | is nece|ssary si|
|00001200| 6e 63 65 20 74 68 65 20 | 69 6e 73 65 72 74 69 6f |nce the |insertio|
|00001210| 6e 20 70 6f 69 6e 74 20 | 6d 61 72 6b 65 72 0a 09 |n point |marker..|
|00001220| 23 20 22 53 74 61 72 74 | 78 22 20 69 73 20 6e 6f |# "Start|x" is no|
|00001230| 74 20 6e 65 63 65 73 73 | 61 72 69 6c 79 20 62 65 |t necess|arily be|
|00001240| 66 6f 72 65 20 22 45 6e | 64 78 22 2e 0a 09 69 66 |fore "En|dx"...if|
|00001250| 20 7b 24 50 4c 4f 54 28 | 53 74 61 72 74 78 29 3e | {$PLOT(|Startx)>|
|00001260| 24 50 4c 4f 54 28 45 6e | 64 78 29 7d 20 7b 20 0a |$PLOT(En|dx)} { .|
|00001270| 09 09 09 73 65 74 20 73 | 6b 69 70 20 24 50 4c 4f |...set s|kip $PLO|
|00001280| 54 28 45 6e 64 78 29 78 | 24 62 79 74 65 73 0a 09 |T(Endx)x|$bytes..|
|00001290| 09 09 73 65 74 20 63 6f | 75 6e 74 20 5b 65 78 70 |..set co|unt [exp|
|000012a0| 72 20 28 24 50 4c 4f 54 | 28 53 74 61 72 74 78 29 |r ($PLOT|(Startx)|
|000012b0| 2d 24 50 4c 4f 54 28 45 | 6e 64 78 29 29 5d 78 24 |-$PLOT(E|ndx))]x$|
|000012c0| 62 79 74 65 73 0a 09 7d | 20 65 6c 73 65 20 7b 0a |bytes..}| else {.|
|000012d0| 09 09 09 73 65 74 20 73 | 6b 69 70 20 24 50 4c 4f |...set s|kip $PLO|
|000012e0| 54 28 53 74 61 72 74 78 | 29 78 24 62 79 74 65 73 |T(Startx|)x$bytes|
|000012f0| 0a 09 09 09 73 65 74 20 | 63 6f 75 6e 74 20 5b 65 |....set |count [e|
|00001300| 78 70 72 20 28 24 50 4c | 4f 54 28 45 6e 64 78 29 |xpr ($PL|OT(Endx)|
|00001310| 2d 24 50 4c 4f 54 28 53 | 74 61 72 74 78 29 29 5d |-$PLOT(S|tartx))]|
|00001320| 78 24 62 79 74 65 73 0a | 09 7d 0a 0a 09 23 20 55 |x$bytes.|.}...# U|
|00001330| 73 65 20 74 68 65 20 73 | 79 73 74 65 6d 20 63 6f |se the s|ystem co|
|00001340| 6d 6d 61 6e 64 73 20 22 | 74 61 69 6c 22 20 61 6e |mmands "|tail" an|
|00001350| 64 20 22 64 64 22 2c 20 | 74 6f 20 65 78 74 72 61 |d "dd", |to extra|
|00001360| 63 74 20 74 68 65 20 6d | 61 72 6b 65 64 20 64 61 |ct the m|arked da|
|00001370| 74 61 0a 09 23 20 66 72 | 6f 6d 20 74 68 65 20 66 |ta..# fr|om the f|
|00001380| 69 6c 65 2e 20 54 68 65 | 20 63 61 74 63 68 20 63 |ile. The| catch c|
|00001390| 6f 6d 6d 61 6e 64 20 69 | 73 20 75 73 65 64 20 74 |ommand i|s used t|
|000013a0| 6f 20 63 61 74 63 68 20 | 61 6e 20 65 72 72 6f 72 |o catch |an error|
|000013b0| 20 69 66 20 74 68 65 72 | 65 0a 09 23 20 69 73 20 | if ther|e..# is |
|000013c0| 73 74 72 61 79 20 6f 75 | 74 70 75 74 20 74 6f 20 |stray ou|tput to |
|000013d0| 73 74 61 6e 64 61 72 64 | 20 6f 75 74 2c 20 63 61 |standard| out, ca|
|000013e0| 75 73 69 6e 67 20 61 6e | 20 75 6e 64 65 73 69 72 |using an| undesir|
|000013f0| 65 64 20 65 72 72 6f 72 | 2e 0a 09 63 61 74 63 68 |ed error|...catch|
|00001400| 20 7b 65 78 65 63 20 74 | 61 69 6c 20 2d 63 20 2b | {exec t|ail -c +|
|00001410| 5b 65 78 70 72 20 24 50 | 4c 4f 54 28 4f 66 66 73 |[expr $P|LOT(Offs|
|00001420| 65 74 29 2a 24 62 79 74 | 65 73 5d 20 24 46 49 4c |et)*$byt|es] $FIL|
|00001430| 45 28 54 4d 50 31 29 5c | 0a 09 09 20 7c 20 64 64 |E(TMP1)\|... | dd|
|00001440| 20 6f 66 3d 24 66 69 6c | 65 20 73 6b 69 70 3d 24 | of=$fil|e skip=$|
|00001450| 73 6b 69 70 20 62 73 3d | 24 50 4c 4f 54 28 42 6c |skip bs=|$PLOT(Bl|
|00001460| 6f 63 6b 73 69 7a 65 29 | 20 63 6f 75 6e 74 3d 24 |ocksize)| count=$|
|00001470| 63 6f 75 6e 74 7d 20 65 | 72 72 0a 0a 09 23 20 45 |count} e|rr...# E|
|00001480| 6e 64 20 64 65 6c 61 79 | 20 69 6e 64 69 63 61 74 |nd delay| indicat|
|00001490| 69 6f 6e 2e 0a 20 09 57 | 61 69 74 50 6c 65 61 73 |ion.. .W|aitPleas|
|000014a0| 65 20 30 0a 20 20 20 7d | 0a 7d 0a 0a 23 23 23 23 |e 0. }|.}..####|
|000014b0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000014c0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000014d0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000014e0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 0a |########|#######.|
|000014f0| 23 20 43 75 74 0a 23 20 | 54 68 69 73 20 70 72 6f |# Cut.# |This pro|
|00001500| 63 65 64 75 72 65 20 69 | 73 20 74 68 65 20 63 61 |cedure i|s the ca|
|00001510| 6c 6c 62 61 63 6b 20 74 | 6f 20 74 68 65 20 45 64 |llback t|o the Ed|
|00001520| 69 74 2d 43 75 74 20 6d | 65 6e 75 20 69 74 65 6d |it-Cut m|enu item|
|00001530| 2e 0a 23 20 49 74 20 63 | 6f 70 69 65 73 20 74 68 |..# It c|opies th|
|00001540| 65 20 63 6f 6e 74 65 6e | 74 73 20 6f 66 20 74 68 |e conten|ts of th|
|00001550| 65 20 6d 61 72 6b 65 64 | 20 61 72 65 61 20 69 6e |e marked| area in|
|00001560| 74 6f 20 74 68 65 20 63 | 6c 69 70 62 6f 61 72 64 |to the c|lipboard|
|00001570| 20 66 69 6c 65 0a 23 20 | 61 6e 64 20 74 68 65 6e | file.# |and then|
|00001580| 20 72 65 6d 6f 76 65 73 | 20 74 68 65 20 73 61 6d | removes| the sam|
|00001590| 70 6c 65 73 20 69 6e 20 | 74 68 65 20 6d 61 72 6b |ples in |the mark|
|000015a0| 65 64 20 61 72 65 61 2e | 0a 70 72 6f 63 20 43 75 |ed area.|.proc Cu|
|000015b0| 74 20 7b 7d 20 7b 0a 20 | 20 20 67 6c 6f 62 61 6c |t {} {. | global|
|000015c0| 20 46 4c 41 47 20 50 4c | 4f 54 20 46 49 4c 45 0a | FLAG PL|OT FILE.|
|000015d0| 0a 20 20 20 23 20 4f 6e | 6c 79 20 74 61 6b 65 20 |. # On|ly take |
|000015e0| 61 63 74 69 6f 6e 20 69 | 66 20 74 68 65 72 65 20 |action i|f there |
|000015f0| 69 73 20 61 20 6d 61 72 | 6b 65 64 20 61 72 65 61 |is a mar|ked area|
|00001600| 2e 0a 20 20 20 69 66 20 | 7b 24 46 4c 41 47 28 4d |.. if |{$FLAG(M|
|00001610| 61 72 6b 65 64 29 7d 20 | 7b 0a 0a 09 23 20 49 6e |arked)} |{...# In|
|00001620| 64 69 63 61 74 65 20 74 | 68 61 74 20 74 68 65 72 |dicate t|hat ther|
|00001630| 65 20 77 69 6c 6c 20 62 | 65 20 61 20 64 65 6c 61 |e will b|e a dela|
|00001640| 79 2e 0a 09 57 61 69 74 | 50 6c 65 61 73 65 0a 0a |y...Wait|Please..|
|00001650| 09 23 20 43 6f 70 79 20 | 6d 61 72 6b 65 64 20 61 |.# Copy |marked a|
|00001660| 72 65 61 20 74 6f 20 74 | 68 65 20 63 6c 69 70 62 |rea to t|he clipb|
|00001670| 6f 61 72 64 2e 0a 09 43 | 6f 70 79 0a 0a 09 23 20 |oard...C|opy...# |
|00001680| 44 65 6c 65 74 65 20 74 | 68 65 20 6d 61 72 6b 65 |Delete t|he marke|
|00001690| 64 20 61 72 65 61 2e 0a | 09 44 65 6c 65 74 65 0a |d area..|.Delete.|
|000016a0| 0a 09 23 20 45 6e 64 20 | 64 65 6c 61 79 20 69 6e |..# End |delay in|
|000016b0| 64 69 63 61 74 69 6f 6e | 2e 0a 09 57 61 69 74 50 |dication|...WaitP|
|000016c0| 6c 65 61 73 65 20 30 0a | 20 20 20 7d 0a 7d 0a 0a |lease 0.| }.}..|
|000016d0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000016e0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000016f0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001700| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001710| 23 23 23 0a 23 20 44 65 | 6c 65 74 65 0a 23 20 54 |###.# De|lete.# T|
|00001720| 68 69 73 20 70 72 6f 63 | 65 64 75 72 65 20 69 73 |his proc|edure is|
|00001730| 20 74 68 65 20 63 61 6c | 6c 62 61 63 6b 20 74 6f | the cal|lback to|
|00001740| 20 74 68 65 20 45 64 69 | 74 2d 44 65 6c 65 74 65 | the Edi|t-Delete|
|00001750| 20 6d 65 6e 75 20 69 74 | 65 6d 2e 0a 23 20 49 74 | menu it|em..# It|
|00001760| 20 72 65 6d 6f 76 65 73 | 20 74 68 65 20 73 61 6d | removes| the sam|
|00001770| 70 6c 65 73 20 69 6e 20 | 74 68 65 20 6d 61 72 6b |ples in |the mark|
|00001780| 65 64 20 61 72 65 61 20 | 66 72 6f 6d 20 74 68 65 |ed area |from the|
|00001790| 20 77 6f 72 6b 69 6e 67 | 20 66 69 6c 65 2e 0a 23 | working| file..#|
|000017a0| 20 54 68 65 20 70 61 72 | 61 6d 65 6d 74 65 72 20 | The par|amemter |
|000017b0| 74 6f 55 6e 64 6f 20 69 | 73 20 61 20 62 6f 6f 6c |toUndo i|s a bool|
|000017c0| 65 61 6e 20 76 61 6c 75 | 65 20 69 6e 64 69 63 61 |ean valu|e indica|
|000017d0| 74 69 6e 67 20 77 68 65 | 74 68 65 72 20 74 68 65 |ting whe|ther the|
|000017e0| 0a 23 20 6f 72 69 67 69 | 6e 61 6c 20 77 6f 72 6b |.# origi|nal work|
|000017f0| 69 6e 67 20 66 69 6c 65 | 20 73 68 6f 75 6c 64 20 |ing file| should |
|00001800| 62 65 20 63 6f 70 69 65 | 64 20 74 6f 20 74 68 65 |be copie|d to the|
|00001810| 20 75 6e 64 6f 20 66 69 | 6c 65 2e 0a 70 72 6f 63 | undo fi|le..proc|
|00001820| 20 44 65 6c 65 74 65 20 | 7b 7b 74 6f 55 6e 64 6f | Delete |{{toUndo|
|00001830| 20 31 7d 7d 20 7b 0a 20 | 20 20 67 6c 6f 62 61 6c | 1}} {. | global|
|00001840| 20 46 4c 41 47 20 50 4c | 4f 54 20 46 49 4c 45 0a | FLAG PL|OT FILE.|
|00001850| 0a 20 20 20 23 20 4f 6e | 6c 79 20 74 61 6b 65 20 |. # On|ly take |
|00001860| 61 63 74 69 6f 6e 20 69 | 66 20 74 68 65 72 65 20 |action i|f there |
|00001870| 69 73 20 61 20 6d 61 72 | 6b 65 64 20 61 72 65 61 |is a mar|ked area|
|00001880| 2e 0a 20 20 20 69 66 20 | 7b 24 46 4c 41 47 28 4d |.. if |{$FLAG(M|
|00001890| 61 72 6b 65 64 29 7d 20 | 7b 0a 0a 09 23 20 49 6e |arked)} |{...# In|
|000018a0| 64 69 63 61 74 65 20 74 | 68 61 74 20 74 68 65 72 |dicate t|hat ther|
|000018b0| 65 20 77 69 6c 6c 20 62 | 65 20 61 20 64 65 6c 61 |e will b|e a dela|
|000018c0| 79 2e 0a 20 20 20 09 57 | 61 69 74 50 6c 65 61 73 |y.. .W|aitPleas|
|000018d0| 65 0a 0a 09 23 20 47 65 | 74 20 74 68 65 20 73 69 |e...# Ge|t the si|
|000018e0| 7a 65 20 6f 66 20 74 68 | 65 20 73 61 6d 70 6c 65 |ze of th|e sample|
|000018f0| 73 20 69 6e 20 62 79 74 | 65 73 2e 0a 09 73 65 74 |s in byt|es...set|
|00001900| 20 62 79 74 65 73 20 5b | 47 65 74 57 6f 72 64 53 | bytes [|GetWordS|
|00001910| 69 7a 65 5d 0a 0a 09 23 | 20 53 65 74 20 74 68 65 |ize]...#| Set the|
|00001920| 20 62 79 74 65 73 20 74 | 6f 20 73 6b 69 70 20 61 | bytes t|o skip a|
|00001930| 6e 64 20 63 6f 75 6e 74 | 2c 20 66 6f 72 20 74 68 |nd count|, for th|
|00001940| 65 20 22 64 64 22 20 6f | 70 65 72 61 74 69 6f 6e |e "dd" o|peration|
|00001950| 20 6c 61 74 65 72 2e 0a | 09 23 20 54 68 65 20 22 | later..|.# The "|
|00001960| 69 66 22 20 73 74 61 74 | 65 6d 65 6e 74 20 69 73 |if" stat|ement is|
|00001970| 20 6e 65 63 65 73 73 61 | 72 79 20 73 69 6e 63 65 | necessa|ry since|
|00001980| 20 74 68 65 20 69 6e 73 | 65 72 74 69 6f 6e 20 70 | the ins|ertion p|
|00001990| 6f 69 6e 74 20 6d 61 72 | 6b 65 72 0a 09 23 20 22 |oint mar|ker..# "|
|000019a0| 53 74 61 72 74 78 22 20 | 69 73 20 6e 6f 74 20 6e |Startx" |is not n|
|000019b0| 65 63 65 73 73 61 72 69 | 6c 79 20 62 65 66 6f 72 |ecessari|ly befor|
|000019c0| 65 20 22 45 6e 64 78 22 | 2e 0a 09 69 66 20 7b 24 |e "Endx"|...if {$|
|000019d0| 50 4c 4f 54 28 53 74 61 | 72 74 78 29 3e 24 50 4c |PLOT(Sta|rtx)>$PL|
|000019e0| 4f 54 28 45 6e 64 78 29 | 7d 20 7b 0a 09 09 73 65 |OT(Endx)|} {...se|
|000019f0| 74 20 63 6f 75 6e 74 20 | 5b 65 78 70 72 20 24 50 |t count |[expr $P|
|00001a00| 4c 4f 54 28 45 6e 64 78 | 29 2a 24 50 4c 4f 54 28 |LOT(Endx|)*$PLOT(|
|00001a10| 42 6c 6f 63 6b 73 69 7a | 65 29 2b 24 50 4c 4f 54 |Blocksiz|e)+$PLOT|
|00001a20| 28 4f 66 66 73 65 74 29 | 5d 78 24 62 79 74 65 73 |(Offset)|]x$bytes|
|00001a30| 0a 09 09 73 65 74 20 73 | 6b 69 70 20 24 50 4c 4f |...set s|kip $PLO|
|00001a40| 54 28 53 74 61 72 74 78 | 29 78 24 62 79 74 65 73 |T(Startx|)x$bytes|
|00001a50| 0a 09 09 23 20 53 65 74 | 20 74 68 65 20 74 77 6f |...# Set| the two|
|00001a60| 20 70 6f 69 6e 74 73 20 | 65 71 75 61 6c 20 28 74 | points |equal (t|
|00001a70| 6f 20 74 68 65 20 6c 65 | 66 74 2d 6d 6f 73 74 20 |o the le|ft-most |
|00001a80| 6d 61 72 6b 65 72 29 0a | 09 09 73 65 74 20 50 4c |marker).|..set PL|
|00001a90| 4f 54 28 53 74 61 72 74 | 78 29 20 24 50 4c 4f 54 |OT(Start|x) $PLOT|
|00001aa0| 28 45 6e 64 78 29 0a 09 | 7d 20 65 6c 73 65 20 7b |(Endx)..|} else {|
|00001ab0| 0a 09 09 73 65 74 20 63 | 6f 75 6e 74 20 5b 65 78 |...set c|ount [ex|
|00001ac0| 70 72 20 24 50 4c 4f 54 | 28 53 74 61 72 74 78 29 |pr $PLOT|(Startx)|
|00001ad0| 2a 24 50 4c 4f 54 28 42 | 6c 6f 63 6b 73 69 7a 65 |*$PLOT(B|locksize|
|00001ae0| 29 2b 24 50 4c 4f 54 28 | 4f 66 66 73 65 74 29 5d |)+$PLOT(|Offset)]|
|00001af0| 78 24 62 79 74 65 73 0a | 09 09 73 65 74 20 73 6b |x$bytes.|..set sk|
|00001b00| 69 70 20 24 50 4c 4f 54 | 28 45 6e 64 78 29 78 24 |ip $PLOT|(Endx)x$|
|00001b10| 62 79 74 65 73 0a 09 09 | 23 20 53 65 74 20 74 68 |bytes...|# Set th|
|00001b20| 65 20 74 77 6f 20 70 6f | 69 6e 74 73 20 65 71 75 |e two po|ints equ|
|00001b30| 61 6c 20 28 74 6f 20 74 | 68 65 20 6c 65 66 74 2d |al (to t|he left-|
|00001b40| 6d 6f 73 74 20 6d 61 72 | 6b 65 72 29 0a 09 09 73 |most mar|ker)...s|
|00001b50| 65 74 20 50 4c 4f 54 28 | 45 6e 64 78 29 20 24 50 |et PLOT(|Endx) $P|
|00001b60| 4c 4f 54 28 53 74 61 72 | 74 78 29 0a 09 7d 0a 0a |LOT(Star|tx)..}..|
|00001b70| 09 23 20 55 73 65 20 73 | 79 73 74 65 6d 20 63 61 |.# Use s|ystem ca|
|00001b80| 6c 6c 73 20 22 74 61 69 | 6c 22 20 61 6e 64 20 22 |lls "tai|l" and "|
|00001b90| 64 64 22 20 74 6f 20 72 | 65 6d 6f 76 65 20 74 68 |dd" to r|emove th|
|00001ba0| 65 20 6d 61 72 6b 65 64 | 20 73 61 6d 70 6c 65 73 |e marked| samples|
|00001bb0| 2e 0a 20 09 23 20 54 68 | 65 20 63 61 74 63 68 20 |.. .# Th|e catch |
|00001bc0| 63 6f 6d 6d 61 6e 64 20 | 69 73 20 75 73 65 64 20 |command |is used |
|00001bd0| 74 6f 20 63 61 74 63 68 | 20 61 6e 20 65 72 72 6f |to catch| an erro|
|00001be0| 72 20 69 66 20 74 68 65 | 72 65 0a 09 23 20 69 73 |r if the|re..# is|
|00001bf0| 20 73 74 72 61 79 20 6f | 75 74 70 75 74 20 74 6f | stray o|utput to|
|00001c00| 20 73 74 61 6e 64 61 72 | 64 20 6f 75 74 2c 20 63 | standar|d out, c|
|00001c10| 61 75 73 69 6e 67 20 61 | 6e 20 75 6e 64 65 73 69 |ausing a|n undesi|
|00001c20| 72 65 64 20 65 72 72 6f | 72 2e 0a 09 23 20 53 74 |red erro|r...# St|
|00001c30| 6f 72 65 20 69 6e 20 74 | 68 65 20 74 65 6d 70 6f |ore in t|he tempo|
|00001c40| 72 61 72 79 20 66 69 6c | 65 20 28 54 4d 50 35 29 |rary fil|e (TMP5)|
|00001c50| 0a 09 63 61 74 63 68 20 | 7b 20 65 78 65 63 20 64 |..catch |{ exec d|
|00001c60| 64 20 69 66 3d 24 46 49 | 4c 45 28 54 4d 50 31 29 |d if=$FI|LE(TMP1)|
|00001c70| 20 6f 66 3d 24 46 49 4c | 45 28 54 4d 50 35 29 20 | of=$FIL|E(TMP5) |
|00001c80| 62 73 3d 31 20 63 6f 75 | 6e 74 3d 24 63 6f 75 6e |bs=1 cou|nt=$coun|
|00001c90| 74 7d 0a 09 63 61 74 63 | 68 20 7b 65 78 65 63 20 |t}..catc|h {exec |
|00001ca0| 74 61 69 6c 20 2d 63 20 | 2b 5b 65 78 70 72 20 24 |tail -c |+[expr $|
|00001cb0| 50 4c 4f 54 28 4f 66 66 | 73 65 74 29 2a 24 62 79 |PLOT(Off|set)*$by|
|00001cc0| 74 65 73 5d 20 24 46 49 | 4c 45 28 54 4d 50 31 29 |tes] $FI|LE(TMP1)|
|00001cd0| 5c 0a 09 09 20 7c 20 64 | 64 20 62 73 3d 24 50 4c |\... | d|d bs=$PL|
|00001ce0| 4f 54 28 42 6c 6f 63 6b | 73 69 7a 65 29 20 73 6b |OT(Block|size) sk|
|00001cf0| 69 70 3d 24 73 6b 69 70 | 20 3e 3e 20 24 46 49 4c |ip=$skip| >> $FIL|
|00001d00| 45 28 54 4d 50 35 29 7d | 0a 0a 20 09 23 20 4d 6f |E(TMP5)}|.. .# Mo|
|00001d10| 76 65 20 74 68 65 20 77 | 6f 72 6b 69 6e 67 20 66 |ve the w|orking f|
|00001d20| 69 6c 65 20 74 6f 20 74 | 68 65 20 75 6e 64 6f 20 |ile to t|he undo |
|00001d30| 66 69 6c 65 20 28 54 4d | 50 34 29 20 69 66 20 72 |file (TM|P4) if r|
|00001d40| 65 71 75 65 73 74 65 64 | 2e 0a 09 69 66 20 7b 24 |equested|...if {$|
|00001d50| 74 6f 55 6e 64 6f 7d 20 | 7b 0a 09 09 23 20 53 74 |toUndo} |{...# St|
|00001d60| 6f 72 65 20 6f 72 69 67 | 69 6e 61 6c 20 69 6e 20 |ore orig|inal in |
|00001d70| 75 6e 64 6f 20 62 75 66 | 66 65 72 0a 09 09 65 78 |undo buf|fer...ex|
|00001d80| 65 63 20 6d 76 20 24 46 | 49 4c 45 28 54 4d 50 31 |ec mv $F|ILE(TMP1|
|00001d90| 29 20 24 46 49 4c 45 28 | 54 4d 50 34 29 0a 09 7d |) $FILE(|TMP4)..}|
|00001da0| 0a 0a 09 23 20 4d 6f 76 | 65 20 74 68 65 20 74 65 |...# Mov|e the te|
|00001db0| 6d 70 6f 72 61 72 79 20 | 66 69 6c 65 20 74 6f 20 |mporary |file to |
|00001dc0| 74 68 65 20 77 6f 72 6b | 69 6e 67 20 66 69 6c 65 |the work|ing file|
|00001dd0| 2e 0a 09 65 78 65 63 20 | 6d 76 20 24 46 49 4c 45 |...exec |mv $FILE|
|00001de0| 28 54 4d 50 35 29 20 24 | 46 49 4c 45 28 54 4d 50 |(TMP5) $|FILE(TMP|
|00001df0| 31 29 0a 20 20 20 0a 09 | 23 20 55 70 64 61 74 65 |1). ..|# Update|
|00001e00| 20 74 68 65 20 65 64 69 | 74 69 6e 67 20 70 6c 6f | the edi|ting plo|
|00001e10| 74 20 6f 6e 6c 79 20 69 | 66 20 63 6f 70 69 65 64 |t only i|f copied|
|00001e20| 20 74 6f 20 75 6e 64 6f | 20 66 69 6c 65 2e 0a 09 | to undo| file...|
|00001e30| 23 20 54 68 69 73 20 69 | 73 20 74 6f 20 61 76 6f |# This i|s to avo|
|00001e40| 69 64 20 64 75 70 6c 69 | 63 61 74 65 64 20 77 6f |id dupli|cated wo|
|00001e50| 72 6b 20 28 75 73 65 64 | 20 69 6e 20 70 61 73 74 |rk (used| in past|
|00001e60| 65 29 2e 0a 20 20 20 09 | 69 66 20 7b 24 74 6f 55 |e).. .|if {$toU|
|00001e70| 6e 64 6f 7d 20 7b 20 46 | 69 6c 6c 50 6c 6f 74 20 |ndo} { F|illPlot |
|00001e80| 7d 0a 0a 09 23 20 55 70 | 64 61 74 65 20 73 74 61 |}...# Up|date sta|
|00001e90| 74 75 73 20 66 6c 61 67 | 73 2e 0a 20 20 20 09 73 |tus flag|s.. .s|
|00001ea0| 65 74 20 46 4c 41 47 28 | 4d 61 72 6b 65 64 29 20 |et FLAG(|Marked) |
|00001eb0| 30 0a 20 20 20 09 73 65 | 74 20 46 4c 41 47 28 45 |0. .se|t FLAG(E|
|00001ec0| 64 69 74 65 64 29 20 31 | 0a 0a 09 23 20 45 6e 64 |dited) 1|...# End|
|00001ed0| 20 64 65 6c 61 79 20 69 | 6e 64 69 63 61 74 69 6f | delay i|ndicatio|
|00001ee0| 6e 2e 0a 20 20 20 09 57 | 61 69 74 50 6c 65 61 73 |n.. .W|aitPleas|
|00001ef0| 65 20 30 0a 20 20 20 7d | 0a 7d 0a 0a 23 23 23 23 |e 0. }|.}..####|
|00001f00| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001f10| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001f20| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001f30| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 0a |########|#######.|
|00001f40| 23 20 50 61 73 74 65 0a | 23 20 54 68 69 73 20 70 |# Paste.|# This p|
|00001f50| 72 6f 63 65 64 75 72 65 | 20 69 73 20 74 68 65 20 |rocedure| is the |
|00001f60| 63 61 6c 6c 62 61 63 6b | 20 74 6f 20 74 68 65 20 |callback| to the |
|00001f70| 45 64 69 74 2d 50 61 73 | 74 65 20 6d 65 6e 75 20 |Edit-Pas|te menu |
|00001f80| 69 74 65 6d 2e 20 0a 23 | 20 49 74 20 70 6c 61 63 |item. .#| It plac|
|00001f90| 65 73 20 74 68 65 20 63 | 6f 6e 74 65 6e 74 73 20 |es the c|ontents |
|00001fa0| 6f 66 20 22 66 69 6c 65 | 22 20 69 6e 74 6f 20 74 |of "file|" into t|
|00001fb0| 68 65 20 77 6f 72 6b 69 | 6e 67 20 66 69 6c 65 20 |he worki|ng file |
|00001fc0| 61 74 20 74 68 65 0a 23 | 20 70 6f 69 6e 74 20 6f |at the.#| point o|
|00001fd0| 66 20 74 68 65 20 69 6e | 73 65 72 74 69 6f 6e 20 |f the in|sertion |
|00001fe0| 70 6f 69 6e 74 73 2e 20 | 49 66 20 74 68 65 20 69 |points. |If the i|
|00001ff0| 6e 73 65 72 74 69 6f 6e | 20 70 6f 69 6e 74 73 20 |nsertion| points |
|00002000| 66 6f 72 6d 20 61 0a 23 | 20 6d 61 72 6b 65 64 20 |form a.#| marked |
|00002010| 61 72 65 61 2c 20 74 68 | 65 20 6d 61 72 6b 65 64 |area, th|e marked|
|00002020| 20 61 72 65 61 20 69 73 | 20 72 65 70 6c 61 63 65 | area is| replace|
|00002030| 64 20 62 79 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |d by the| content|
|00002040| 73 20 6f 66 20 66 69 6c | 65 2e 0a 23 20 54 68 65 |s of fil|e..# The|
|00002050| 20 70 61 72 61 6d 65 74 | 65 72 20 66 69 6c 65 20 | paramet|er file |
|00002060| 69 73 20 74 68 65 20 66 | 69 6c 65 6e 61 6d 65 20 |is the f|ilename |
|00002070| 6f 66 20 61 20 73 61 6d | 70 6c 65 20 66 69 6c 65 |of a sam|ple file|
|00002080| 2e 0a 23 20 54 68 65 20 | 64 65 66 61 75 6c 74 20 |..# The |default |
|00002090| 66 69 6c 65 20 69 73 20 | 74 68 65 20 63 6c 69 70 |file is |the clip|
|000020a0| 62 6f 61 72 64 20 66 69 | 6c 65 20 28 54 4d 50 32 |board fi|le (TMP2|
|000020b0| 29 2e 0a 70 72 6f 63 20 | 50 61 73 74 65 20 7b 7b |)..proc |Paste {{|
|000020c0| 66 69 6c 65 20 64 65 66 | 61 75 6c 74 7d 7d 20 7b |file def|ault}} {|
|000020d0| 0a 20 20 20 67 6c 6f 62 | 61 6c 20 46 4c 41 47 20 |. glob|al FLAG |
|000020e0| 50 4c 4f 54 20 46 49 4c | 45 0a 0a 20 20 20 23 20 |PLOT FIL|E.. # |
|000020f0| 41 73 73 69 67 6e 20 64 | 65 66 61 75 6c 74 20 66 |Assign d|efault f|
|00002100| 69 6c 65 20 74 6f 20 62 | 65 20 74 68 65 20 63 6c |ile to b|e the cl|
|00002110| 69 70 62 6f 61 72 64 2e | 0a 20 20 20 69 66 20 7b |ipboard.|. if {|
|00002120| 20 24 66 69 6c 65 20 3d | 3d 22 64 65 66 61 75 6c | $file =|="defaul|
|00002130| 74 22 20 7d 20 7b 0a 09 | 73 65 74 20 66 69 6c 65 |t" } {..|set file|
|00002140| 20 24 46 49 4c 45 28 54 | 4d 50 32 29 0a 09 73 65 | $FILE(T|MP2)..se|
|00002150| 74 20 46 4c 41 47 28 43 | 6c 69 70 29 20 31 0a 20 |t FLAG(C|lip) 1. |
|00002160| 20 20 7d 0a 0a 20 20 20 | 23 20 4f 6e 6c 79 20 74 | }.. |# Only t|
|00002170| 61 6b 65 20 61 63 74 69 | 6f 6e 20 69 66 20 74 68 |ake acti|on if th|
|00002180| 65 20 66 69 6c 65 20 65 | 78 69 73 74 73 2e 0a 20 |e file e|xists.. |
|00002190| 20 20 69 66 20 7b 5b 66 | 69 6c 65 20 65 78 69 73 | if {[f|ile exis|
|000021a0| 74 20 24 66 69 6c 65 5d | 7d 20 7b 0a 0a 20 20 20 |t $file]|} {.. |
|000021b0| 20 20 20 23 20 53 74 6f | 72 65 20 6f 72 69 67 69 | # Sto|re origi|
|000021c0| 6e 61 6c 20 77 6f 72 6b | 69 6e 67 20 66 69 6c 65 |nal work|ing file|
|000021d0| 20 69 6e 20 74 68 65 20 | 75 6e 64 6f 20 66 69 6c | in the |undo fil|
|000021e0| 65 20 61 6e 64 20 72 65 | 6d 6f 76 65 20 74 68 65 |e and re|move the|
|000021f0| 20 6d 61 72 6b 65 64 20 | 61 72 65 61 2e 0a 20 20 | marked |area.. |
|00002200| 20 20 20 20 69 66 20 7b | 5b 66 69 6c 65 20 65 78 | if {|[file ex|
|00002210| 69 73 74 20 24 46 49 4c | 45 28 54 4d 50 31 29 5d |ist $FIL|E(TMP1)]|
|00002220| 7d 20 7b 0a 09 23 20 43 | 6f 70 79 20 74 68 65 20 |} {..# C|opy the |
|00002230| 77 6f 72 6b 69 6e 67 20 | 66 69 6c 65 20 74 6f 20 |working |file to |
|00002240| 74 68 65 20 75 6e 64 6f | 20 66 69 6c 65 2e 0a 09 |the undo| file...|
|00002250| 65 78 65 63 20 63 70 20 | 24 46 49 4c 45 28 54 4d |exec cp |$FILE(TM|
|00002260| 50 31 29 20 24 46 49 4c | 45 28 54 4d 50 34 29 0a |P1) $FIL|E(TMP4).|
|00002270| 0a 20 20 20 09 23 20 49 | 66 20 61 20 62 6c 6f 63 |. .# I|f a bloc|
|00002280| 6b 20 69 73 20 6d 61 72 | 6b 65 64 2c 20 72 65 70 |k is mar|ked, rep|
|00002290| 6c 61 63 65 20 77 69 74 | 68 20 74 68 65 20 63 6f |lace wit|h the co|
|000022a0| 6e 74 65 6e 74 73 20 6f | 66 20 74 68 65 20 63 6c |ntents o|f the cl|
|000022b0| 69 70 62 6f 61 72 64 20 | 66 69 6c 65 2e 0a 20 20 |ipboard |file.. |
|000022c0| 20 09 69 66 20 7b 24 46 | 4c 41 47 28 4d 61 72 6b | .if {$F|LAG(Mark|
|000022d0| 65 64 29 7d 20 7b 0a 09 | 09 44 65 6c 65 74 65 20 |ed)} {..|.Delete |
|000022e0| 30 0a 20 20 20 09 7d 0a | 09 0a 09 23 20 49 6e 64 |0. .}.|...# Ind|
|000022f0| 69 63 61 74 65 20 74 68 | 61 74 20 74 68 65 72 65 |icate th|at there|
|00002300| 20 77 69 6c 6c 20 62 65 | 20 61 20 64 65 6c 61 79 | will be| a delay|
|00002310| 2e 0a 20 20 20 09 57 61 | 69 74 50 6c 65 61 73 65 |.. .Wa|itPlease|
|00002320| 0a 0a 09 23 20 47 65 74 | 20 74 68 65 20 73 69 7a |...# Get| the siz|
|00002330| 65 20 6f 66 20 74 68 65 | 20 73 61 6d 70 6c 65 73 |e of the| samples|
|00002340| 20 69 6e 20 62 79 74 65 | 73 2e 0a 20 20 20 09 73 | in byte|s.. .s|
|00002350| 65 74 20 62 79 74 65 73 | 20 5b 47 65 74 57 6f 72 |et bytes| [GetWor|
|00002360| 64 53 69 7a 65 5d 0a 0a | 09 23 20 53 65 74 20 74 |dSize]..|.# Set t|
|00002370| 68 65 20 62 79 74 65 73 | 20 74 6f 20 73 6b 69 70 |he bytes| to skip|
|00002380| 20 61 6e 64 20 63 6f 75 | 6e 74 2c 20 66 6f 72 20 | and cou|nt, for |
|00002390| 74 68 65 20 22 64 64 22 | 20 6f 70 65 72 61 74 69 |the "dd"| operati|
|000023a0| 6f 6e 20 6c 61 74 65 72 | 2e 0a 09 23 20 54 68 65 |on later|...# The|
|000023b0| 20 22 69 66 22 20 73 74 | 61 74 65 6d 65 6e 74 20 | "if" st|atement |
|000023c0| 69 73 20 6e 65 63 65 73 | 73 61 72 79 20 73 69 6e |is neces|sary sin|
|000023d0| 63 65 20 74 68 65 20 69 | 6e 73 65 72 74 69 6f 6e |ce the i|nsertion|
|000023e0| 20 70 6f 69 6e 74 20 6d | 61 72 6b 65 72 0a 09 23 | point m|arker..#|
|000023f0| 20 22 53 74 61 72 74 78 | 22 20 69 73 20 6e 6f 74 | "Startx|" is not|
|00002400| 20 6e 65 63 65 73 73 61 | 72 69 6c 79 20 62 65 66 | necessa|rily bef|
|00002410| 6f 72 65 20 22 45 6e 64 | 78 22 2e 0a 20 20 20 09 |ore "End|x".. .|
|00002420| 69 66 20 7b 24 50 4c 4f | 54 28 53 74 61 72 74 78 |if {$PLO|T(Startx|
|00002430| 29 3e 24 50 4c 4f 54 28 | 45 6e 64 78 29 7d 20 7b |)>$PLOT(|Endx)} {|
|00002440| 0a 09 09 73 65 74 20 63 | 6f 75 6e 74 20 5b 65 78 |...set c|ount [ex|
|00002450| 70 72 20 24 50 4c 4f 54 | 28 45 6e 64 78 29 2a 24 |pr $PLOT|(Endx)*$|
|00002460| 50 4c 4f 54 28 42 6c 6f | 63 6b 73 69 7a 65 29 2b |PLOT(Blo|cksize)+|
|00002470| 24 50 4c 4f 54 28 4f 66 | 66 73 65 74 29 5d 78 24 |$PLOT(Of|fset)]x$|
|00002480| 62 79 74 65 73 0a 09 09 | 73 65 74 20 73 6b 69 70 |bytes...|set skip|
|00002490| 20 5b 65 78 70 72 20 24 | 50 4c 4f 54 28 45 6e 64 | [expr $|PLOT(End|
|000024a0| 78 29 2b 31 5d 78 24 62 | 79 74 65 73 0a 20 20 20 |x)+1]x$b|ytes. |
|000024b0| 09 7d 20 65 6c 73 65 20 | 7b 0a 09 09 73 65 74 20 |.} else |{...set |
|000024c0| 63 6f 75 6e 74 20 5b 65 | 78 70 72 20 24 50 4c 4f |count [e|xpr $PLO|
|000024d0| 54 28 53 74 61 72 74 78 | 29 2a 24 50 4c 4f 54 28 |T(Startx|)*$PLOT(|
|000024e0| 42 6c 6f 63 6b 73 69 7a | 65 29 2b 24 50 4c 4f 54 |Blocksiz|e)+$PLOT|
|000024f0| 28 4f 66 66 73 65 74 29 | 5d 78 24 62 79 74 65 73 |(Offset)|]x$bytes|
|00002500| 0a 09 09 73 65 74 20 73 | 6b 69 70 20 5b 65 78 70 |...set s|kip [exp|
|00002510| 72 20 24 50 4c 4f 54 28 | 53 74 61 72 74 78 29 2b |r $PLOT(|Startx)+|
|00002520| 31 5d 78 24 62 79 74 65 | 73 0a 20 20 20 09 7d 0a |1]x$byte|s. .}.|
|00002530| 0a 0a 09 23 20 55 73 65 | 20 73 79 73 74 65 6d 20 |...# Use| system |
|00002540| 63 61 6c 6c 73 20 22 74 | 61 69 6c 22 20 61 6e 64 |calls "t|ail" and|
|00002550| 20 22 64 64 22 20 74 6f | 20 69 6e 73 65 72 74 20 | "dd" to| insert |
|00002560| 74 68 65 20 73 61 6d 70 | 6c 65 73 2e 0a 20 09 23 |the samp|les.. .#|
|00002570| 20 54 68 65 20 63 61 74 | 63 68 20 63 6f 6d 6d 61 | The cat|ch comma|
|00002580| 6e 64 20 69 73 20 75 73 | 65 64 20 74 6f 20 63 61 |nd is us|ed to ca|
|00002590| 74 63 68 20 61 6e 20 65 | 72 72 6f 72 20 69 66 20 |tch an e|rror if |
|000025a0| 74 68 65 72 65 0a 09 23 | 20 69 73 20 73 74 72 61 |there..#| is stra|
|000025b0| 79 20 6f 75 74 70 75 74 | 20 74 6f 20 73 74 61 6e |y output| to stan|
|000025c0| 64 61 72 64 20 6f 75 74 | 2c 20 63 61 75 73 69 6e |dard out|, causin|
|000025d0| 67 20 61 6e 20 75 6e 64 | 65 73 69 72 65 64 20 65 |g an und|esired e|
|000025e0| 72 72 6f 72 2e 0a 0a 20 | 20 20 09 23 20 43 6f 70 |rror... | .# Cop|
|000025f0| 79 20 75 70 74 6f 20 69 | 6e 73 65 72 74 69 6f 6e |y upto i|nsertion|
|00002600| 20 70 6f 69 6e 74 20 6f | 66 20 6f 72 69 67 69 6e | point o|f origin|
|00002610| 61 6c 20 75 73 69 6e 67 | 20 74 68 65 20 73 79 73 |al using| the sys|
|00002620| 74 65 6d 20 63 61 6c 6c | 20 22 64 64 22 2e 0a 20 |tem call| "dd".. |
|00002630| 20 20 09 63 61 74 63 68 | 20 7b 65 78 65 63 20 64 | .catch| {exec d|
|00002640| 64 20 69 66 3d 24 46 49 | 4c 45 28 54 4d 50 31 29 |d if=$FI|LE(TMP1)|
|00002650| 20 6f 66 3d 24 46 49 4c | 45 28 54 4d 50 35 29 20 | of=$FIL|E(TMP5) |
|00002660| 62 73 3d 31 20 63 6f 75 | 6e 74 3d 24 63 6f 75 6e |bs=1 cou|nt=$coun|
|00002670| 74 7d 20 65 72 72 0a 20 | 20 20 09 23 20 43 6f 70 |t} err. | .# Cop|
|00002680| 79 20 74 68 65 20 63 6c | 69 70 62 6f 61 72 64 0a |y the cl|ipboard.|
|00002690| 20 20 20 09 63 61 74 63 | 68 20 7b 65 78 65 63 20 | .catc|h {exec |
|000026a0| 63 61 74 20 24 66 69 6c | 65 20 3e 3e 20 24 46 49 |cat $fil|e >> $FI|
|000026b0| 4c 45 28 54 4d 50 35 29 | 7d 20 65 72 72 0a 20 20 |LE(TMP5)|} err. |
|000026c0| 20 09 23 20 43 6f 70 79 | 20 72 65 73 74 20 6f 66 | .# Copy| rest of|
|000026d0| 20 6f 72 69 67 69 6e 61 | 6c 0a 20 20 20 09 63 61 | origina|l. .ca|
|000026e0| 74 63 68 20 7b 65 78 65 | 63 20 74 61 69 6c 20 2d |tch {exe|c tail -|
|000026f0| 63 20 2b 5b 65 78 70 72 | 20 24 50 4c 4f 54 28 4f |c +[expr| $PLOT(O|
|00002700| 66 66 73 65 74 29 2a 24 | 62 79 74 65 73 5d 20 24 |ffset)*$|bytes] $|
|00002710| 46 49 4c 45 28 54 4d 50 | 31 29 20 5c 0a 09 09 7c |FILE(TMP|1) \...||
|00002720| 20 64 64 20 62 73 3d 24 | 50 4c 4f 54 28 42 6c 6f | dd bs=$|PLOT(Blo|
|00002730| 63 6b 73 69 7a 65 29 20 | 73 6b 69 70 3d 24 73 6b |cksize) |skip=$sk|
|00002740| 69 70 20 3e 3e 20 24 46 | 49 4c 45 28 54 4d 50 35 |ip >> $F|ILE(TMP5|
|00002750| 29 7d 20 65 72 72 0a 0a | 09 23 20 53 74 6f 72 65 |)} err..|.# Store|
|00002760| 20 74 68 65 20 74 65 6d | 70 6f 72 61 72 79 20 66 | the tem|porary f|
|00002770| 69 6c 65 20 69 6e 20 74 | 68 65 20 77 6f 72 6b 69 |ile in t|he worki|
|00002780| 6e 67 20 66 69 6c 65 2e | 0a 09 65 78 65 63 20 6d |ng file.|..exec m|
|00002790| 76 20 24 46 49 4c 45 28 | 54 4d 50 35 29 20 24 46 |v $FILE(|TMP5) $F|
|000027a0| 49 4c 45 28 54 4d 50 31 | 29 0a 0a 20 20 20 20 20 |ILE(TMP1|).. |
|000027b0| 20 7d 20 65 6c 73 65 20 | 7b 0a 09 23 20 54 68 69 | } else |{..# Thi|
|000027c0| 73 20 69 73 20 74 68 65 | 20 63 61 73 65 20 6f 66 |s is the| case of|
|000027d0| 20 70 61 73 74 69 6e 67 | 20 74 68 65 20 66 69 6c | pasting| the fil|
|000027e0| 65 20 63 6f 6e 74 65 6e | 74 73 20 69 6e 74 6f 20 |e conten|ts into |
|000027f0| 61 20 6e 65 77 20 73 61 | 6d 70 6c 65 2e 0a 0a 09 |a new sa|mple....|
|00002800| 23 20 49 6e 64 69 63 61 | 74 65 20 74 68 61 74 20 |# Indica|te that |
|00002810| 74 68 65 72 65 20 77 69 | 6c 6c 20 62 65 20 61 20 |there wi|ll be a |
|00002820| 64 65 6c 61 79 2e 0a 09 | 57 61 69 74 50 6c 65 61 |delay...|WaitPlea|
|00002830| 73 65 0a 0a 09 23 20 43 | 6f 70 79 20 74 68 65 20 |se...# C|opy the |
|00002840| 66 69 6c 65 27 73 20 63 | 6f 6e 74 65 6e 74 73 20 |file's c|ontents |
|00002850| 69 6e 74 6f 20 74 68 65 | 20 77 6f 72 6b 69 6e 67 |into the| working|
|00002860| 20 66 69 6c 65 2e 0a 09 | 65 78 65 63 20 63 70 20 | file...|exec cp |
|00002870| 24 66 69 6c 65 20 24 46 | 49 4c 45 28 54 4d 50 31 |$file $F|ILE(TMP1|
|00002880| 29 0a 0a 20 20 20 09 23 | 20 55 70 64 61 74 65 20 |).. .#| Update |
|00002890| 6c 6f 61 64 20 73 74 61 | 74 75 73 20 66 6c 61 67 |load sta|tus flag|
|000028a0| 2e 0a 20 20 20 09 73 65 | 74 20 46 4c 41 47 28 4c |.. .se|t FLAG(L|
|000028b0| 6f 61 64 65 64 29 20 31 | 0a 09 23 20 45 6e 61 62 |oaded) 1|..# Enab|
|000028c0| 6c 65 20 70 6c 61 79 20 | 70 61 6e 65 6c 20 62 75 |le play |panel bu|
|000028d0| 74 74 6f 6e 73 2e 0a 20 | 20 20 09 50 50 5f 42 75 |ttons.. | .PP_Bu|
|000028e0| 74 74 6f 6e 41 62 6c 65 | 0a 20 20 20 20 20 20 7d |ttonAble|. }|
|000028f0| 0a 0a 20 20 20 20 20 20 | 23 20 55 70 64 61 74 65 |.. |# Update|
|00002900| 20 74 68 65 20 65 64 69 | 74 69 6e 67 20 70 6c 6f | the edi|ting plo|
|00002910| 74 2e 0a 20 20 20 20 20 | 20 46 69 6c 6c 50 6c 6f |t.. | FillPlo|
|00002920| 74 0a 20 20 20 20 20 20 | 23 20 55 70 64 61 74 65 |t. |# Update|
|00002930| 20 73 74 61 74 75 73 20 | 66 6c 61 67 73 2e 0a 20 | status |flags.. |
|00002940| 20 20 20 20 20 73 65 74 | 20 46 4c 41 47 28 4d 61 | set| FLAG(Ma|
|00002950| 72 6b 65 64 29 20 30 0a | 20 20 20 20 20 20 73 65 |rked) 0.| se|
|00002960| 74 20 46 4c 41 47 28 45 | 64 69 74 65 64 29 20 31 |t FLAG(E|dited) 1|
|00002970| 0a 20 20 20 20 20 20 23 | 20 45 6e 64 20 64 65 6c |. #| End del|
|00002980| 61 79 20 69 6e 64 69 63 | 61 74 69 6f 6e 2e 0a 20 |ay indic|ation.. |
|00002990| 20 20 20 20 20 57 61 69 | 74 50 6c 65 61 73 65 20 | Wai|tPlease |
|000029a0| 30 0a 20 20 20 7d 20 65 | 6c 73 65 20 7b 20 0a 09 |0. } e|lse { ..|
|000029b0| 23 20 44 65 62 75 67 20 | 69 6e 66 6f 72 6d 61 74 |# Debug |informat|
|000029c0| 69 6f 6e 2e 0a 09 70 75 | 74 73 20 73 74 64 65 72 |ion...pu|ts stder|
|000029d0| 72 20 22 53 6f 75 6e 64 | 20 53 74 75 64 69 6f 3b |r "Sound| Studio;|
|000029e0| 20 70 72 6f 63 20 50 61 | 73 74 65 3a 20 24 66 69 | proc Pa|ste: $fi|
|000029f0| 6c 65 20 6e 6f 74 20 66 | 6f 75 6e 64 2e 22 0a 20 |le not f|ound.". |
|00002a00| 20 20 7d 0a 7d 0a 0a 0a | 0a 0a 23 23 23 23 23 23 | }.}...|..######|
|00002a10| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002a20| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002a30| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002a40| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 0a 23 20 |########|#####.# |
|00002a50| 53 65 6c 65 63 74 0a 23 | 20 54 68 69 73 20 70 72 |Select.#| This pr|
|00002a60| 6f 63 65 64 75 72 65 20 | 69 73 20 74 68 65 20 63 |ocedure |is the c|
|00002a70| 61 6c 6c 62 61 63 6b 20 | 74 6f 20 74 68 65 20 45 |allback |to the E|
|00002a80| 64 69 74 2d 53 65 6c 65 | 63 74 20 6d 65 6e 75 20 |dit-Sele|ct menu |
|00002a90| 69 74 65 6d 2e 0a 23 20 | 49 74 20 63 72 65 61 74 |item..# |It creat|
|00002aa0| 65 73 20 61 20 64 69 61 | 6c 6f 67 20 62 6f 78 20 |es a dia|log box |
|00002ab0| 77 68 69 63 68 20 69 73 | 20 61 6e 20 61 6c 74 65 |which is| an alte|
|00002ac0| 72 6e 61 74 69 76 65 20 | 69 6e 74 65 72 66 61 63 |rnative |interfac|
|00002ad0| 65 20 66 6f 72 20 0a 23 | 20 6d 61 72 6b 69 6e 67 |e for .#| marking|
|00002ae0| 20 61 20 73 65 63 74 69 | 6f 6e 20 6f 66 20 74 68 | a secti|on of th|
|00002af0| 65 20 73 61 6d 70 6c 65 | 2e 0a 70 72 6f 63 20 53 |e sample|..proc S|
|00002b00| 65 6c 65 63 74 20 7b 7d | 20 7b 0a 20 20 20 67 6c |elect {}| {. gl|
|00002b10| 6f 62 61 6c 20 43 6f 6e | 66 69 67 53 65 74 20 45 |obal Con|figSet E|
|00002b20| 44 20 50 4c 4f 54 20 53 | 41 4d 50 4c 45 0a 0a 20 |D PLOT S|AMPLE.. |
|00002b30| 20 20 23 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | #-----|--------|
|00002b40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002b50| 2d 0a 20 20 20 23 20 4c | 4f 43 41 4c 20 50 52 4f |-. # L|OCAL PRO|
|00002b60| 43 45 44 55 52 45 53 20 | 53 54 41 52 54 20 09 0a |CEDURES |START ..|
|00002b70| 20 20 20 23 20 54 68 65 | 20 63 61 6c 6c 62 61 63 | # The| callbac|
|00002b80| 6b 20 74 6f 20 74 68 65 | 20 6c 65 66 74 20 73 63 |k to the| left sc|
|00002b90| 61 6c 65 2c 20 74 6f 20 | 61 64 6a 75 73 74 20 69 |ale, to |adjust i|
|00002ba0| 6e 73 65 72 74 69 6f 6e | 20 70 6f 69 6e 74 73 2e |nsertion| points.|
|00002bb0| 0a 20 20 20 70 72 6f 63 | 20 53 74 61 72 74 43 61 |. proc| StartCa|
|00002bc0| 6c 6c 42 61 63 6b 20 7b | 76 61 6c 75 65 7d 20 7b |llBack {|value} {|
|00002bd0| 20 0a 20 20 20 20 09 67 | 6c 6f 62 61 6c 20 20 50 | . .g|lobal P|
|00002be0| 4c 4f 54 20 4c 4f 41 44 | 20 45 44 0a 20 20 20 20 |LOT LOAD| ED. |
|00002bf0| 09 73 65 74 20 45 44 28 | 41 70 70 6c 79 29 20 30 |.set ED(|Apply) 0|
|00002c00| 0a 20 20 20 20 09 73 65 | 74 20 45 44 28 4c 65 66 |. .se|t ED(Lef|
|00002c10| 74 29 20 24 76 61 6c 75 | 65 0a 20 20 20 20 09 73 |t) $valu|e. .s|
|00002c20| 65 74 20 50 4c 4f 54 28 | 53 74 61 72 74 78 29 20 |et PLOT(|Startx) |
|00002c30| 5b 65 78 70 72 20 72 6f | 75 6e 64 28 20 24 76 61 |[expr ro|und( $va|
|00002c40| 6c 75 65 2f 24 50 4c 4f | 54 28 42 6c 6f 63 6b 73 |lue/$PLO|T(Blocks|
|00002c50| 69 7a 65 29 20 29 5d 0a | 20 20 20 20 09 73 65 74 |ize) )].| .set|
|00002c60| 20 50 4c 4f 54 28 53 74 | 61 72 74 29 20 5c 0a 09 | PLOT(St|art) \..|
|00002c70| 09 5b 53 65 63 32 54 69 | 6d 65 20 5b 65 78 70 72 |.[Sec2Ti|me [expr|
|00002c80| 20 28 24 76 61 6c 75 65 | 2f 24 4c 4f 41 44 28 72 | ($value|/$LOAD(r|
|00002c90| 61 74 65 29 2e 30 29 5d | 5d 0a 20 20 20 7d 0a 0a |ate).0)]|]. }..|
|00002ca0| 20 20 20 23 20 43 61 6c | 6c 62 61 63 6b 20 74 6f | # Cal|lback to|
|00002cb0| 20 72 69 67 68 74 20 73 | 63 61 6c 65 2c 20 74 6f | right s|cale, to|
|00002cc0| 20 61 64 6a 75 73 74 20 | 69 6e 73 65 72 74 69 6f | adjust |insertio|
|00002cd0| 6e 20 70 6f 69 6e 74 73 | 2e 0a 20 20 20 70 72 6f |n points|.. pro|
|00002ce0| 63 20 45 6e 64 43 61 6c | 6c 42 61 63 6b 20 7b 76 |c EndCal|lBack {v|
|00002cf0| 61 6c 75 65 7d 20 7b 20 | 0a 20 20 20 20 09 67 6c |alue} { |. .gl|
|00002d00| 6f 62 61 6c 20 20 50 4c | 4f 54 20 4c 4f 41 44 20 |obal PL|OT LOAD |
|00002d10| 45 44 0a 20 20 20 09 73 | 65 74 20 45 44 28 41 70 |ED. .s|et ED(Ap|
|00002d20| 70 6c 79 29 20 30 0a 20 | 20 20 20 09 73 65 74 20 |ply) 0. | .set |
|00002d30| 45 44 28 52 69 67 68 74 | 29 20 24 76 61 6c 75 65 |ED(Right|) $value|
|00002d40| 0a 20 20 20 20 09 73 65 | 74 20 50 4c 4f 54 28 45 |. .se|t PLOT(E|
|00002d50| 6e 64 78 29 20 5b 65 78 | 70 72 20 72 6f 75 6e 64 |ndx) [ex|pr round|
|00002d60| 28 24 76 61 6c 75 65 2f | 24 50 4c 4f 54 28 42 6c |($value/|$PLOT(Bl|
|00002d70| 6f 63 6b 73 69 7a 65 29 | 29 5d 0a 20 20 20 20 09 |ocksize)|)]. .|
|00002d80| 73 65 74 20 50 4c 4f 54 | 28 45 6e 64 29 5c 0a 09 |set PLOT|(End)\..|
|00002d90| 20 5b 53 65 63 32 54 69 | 6d 65 20 5b 65 78 70 72 | [Sec2Ti|me [expr|
|00002da0| 20 28 24 76 61 6c 75 65 | 2f 24 4c 4f 41 44 28 72 | ($value|/$LOAD(r|
|00002db0| 61 74 65 29 2e 30 29 5d | 5d 0a 20 20 20 7d 0a 0a |ate).0)]|]. }..|
|00002dc0| 20 20 20 23 20 43 61 6c | 6c 62 61 63 6b 20 74 6f | # Cal|lback to|
|00002dd0| 20 74 68 65 20 41 70 70 | 6c 79 20 62 75 74 74 6f | the App|ly butto|
|00002de0| 6e 2e 0a 20 20 20 70 72 | 6f 63 20 53 65 6c 65 63 |n.. pr|oc Selec|
|00002df0| 74 41 70 70 6c 79 20 7b | 7d 20 7b 0a 09 67 6c 6f |tApply {|} {..glo|
|00002e00| 62 61 6c 20 45 44 20 46 | 4c 41 47 20 50 4c 4f 54 |bal ED F|LAG PLOT|
|00002e10| 0a 09 69 66 20 7b 24 45 | 44 28 41 70 70 6c 79 29 |..if {$E|D(Apply)|
|00002e20| 7d 20 7b 20 0a 09 09 4d | 61 72 6b 50 6c 6f 74 20 |} { ...M|arkPlot |
|00002e30| 0a 09 09 73 65 74 20 46 | 4c 41 47 28 4d 61 72 6b |...set F|LAG(Mark|
|00002e40| 65 64 29 20 5b 65 78 70 | 72 20 24 45 44 28 4c 65 |ed) [exp|r $ED(Le|
|00002e50| 66 74 29 21 3d 24 45 44 | 28 52 69 67 68 74 29 5d |ft)!=$ED|(Right)]|
|00002e60| 0a 09 09 0a 09 20 7d 0a | 20 20 20 7d 0a 0a 20 20 |..... }.| }.. |
|00002e70| 20 23 20 4c 4f 43 41 4c | 20 50 52 4f 43 45 44 55 | # LOCAL| PROCEDU|
|00002e80| 52 45 53 20 45 4e 44 0a | 20 20 20 23 2d 2d 2d 2d |RES END.| #----|
|00002e90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002ea0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 0a 20 20 20 23 |--------|--.. #|
|00002eb0| 20 43 72 65 61 74 65 20 | 74 68 65 20 74 6f 70 6c | Create |the topl|
|00002ec0| 65 76 65 6c 20 2e 73 65 | 6c 65 63 74 20 66 6f 72 |evel .se|lect for|
|00002ed0| 20 74 68 65 20 64 69 61 | 6c 6f 67 20 62 6f 78 2e | the dia|log box.|
|00002ee0| 0a 20 20 20 74 6f 70 6c | 65 76 65 6c 20 2e 73 65 |. topl|evel .se|
|00002ef0| 6c 65 63 74 20 2d 62 67 | 20 24 43 6f 6e 66 69 67 |lect -bg| $Config|
|00002f00| 53 65 74 28 63 42 47 31 | 29 0a 20 20 20 77 6d 20 |Set(cBG1|). wm |
|00002f10| 74 69 74 6c 65 20 2e 73 | 65 6c 65 63 74 20 22 4d |title .s|elect "M|
|00002f20| 61 72 6b 20 52 61 6e 67 | 65 22 0a 20 20 20 23 20 |ark Rang|e". # |
|00002f30| 53 65 74 20 77 69 6e 64 | 6f 77 20 61 73 20 61 20 |Set wind|ow as a |
|00002f40| 70 6f 70 2d 75 70 20 63 | 68 69 6c 64 20 6f 66 20 |pop-up c|hild of |
|00002f50| 74 68 65 20 72 6f 6f 74 | 20 77 69 6e 64 6f 77 2e |the root| window.|
|00002f60| 0a 20 20 20 77 6d 20 74 | 72 61 6e 73 69 65 6e 74 |. wm t|ransient|
|00002f70| 20 2e 73 65 6c 65 63 74 | 20 2e 0a 20 20 20 23 20 | .select| .. # |
|00002f80| 53 74 6f 70 20 65 6e 74 | 72 79 20 66 72 6f 6d 20 |Stop ent|ry from |
|00002f90| 74 68 65 20 6d 61 69 6e | 20 77 69 6e 64 6f 77 2e |the main| window.|
|00002fa0| 20 28 67 72 61 62 29 2e | 0a 20 20 20 63 61 74 63 | (grab).|. catc|
|00002fb0| 68 20 7b 20 67 72 61 62 | 20 2e 73 65 6c 65 63 74 |h { grab| .select|
|00002fc0| 20 7d 0a 0a 20 20 20 23 | 20 43 72 65 61 74 65 20 | }.. #| Create |
|00002fd0| 57 69 64 67 65 74 73 2e | 0a 20 20 20 23 20 54 68 |Widgets.|. # Th|
|00002fe0| 65 20 47 65 6e 65 72 61 | 6c 20 46 72 61 6d 65 2e |e Genera|l Frame.|
|00002ff0| 09 20 20 20 0a 20 20 20 | 66 72 61 6d 65 20 2e 73 |. . |frame .s|
|00003000| 65 6c 65 63 74 2e 6d 61 | 69 6e 20 09 2d 62 67 20 |elect.ma|in .-bg |
|00003010| 24 43 6f 6e 66 69 67 53 | 65 74 28 63 42 47 31 29 |$ConfigS|et(cBG1)|
|00003020| 5c 0a 09 09 09 2d 62 64 | 20 32 20 2d 72 65 6c 69 |\....-bd| 2 -reli|
|00003030| 65 66 20 24 43 6f 6e 66 | 69 67 53 65 74 28 52 45 |ef $Conf|igSet(RE|
|00003040| 4c 29 0a 0a 20 20 20 23 | 20 54 68 65 20 73 65 74 |L).. #| The set|
|00003050| 20 66 72 61 6d 65 2e 0a | 20 20 20 66 72 61 6d 65 | frame..| frame|
|00003060| 20 2e 73 65 6c 65 63 74 | 2e 6d 61 69 6e 2e 73 65 | .select|.main.se|
|00003070| 74 20 2d 62 67 20 24 43 | 6f 6e 66 69 67 53 65 74 |t -bg $C|onfigSet|
|00003080| 28 63 42 47 31 29 20 20 | 0a 0a 20 20 20 23 20 54 |(cBG1) |.. # T|
|00003090| 68 65 20 73 63 61 6c 65 | 20 77 69 64 67 65 74 20 |he scale| widget |
|000030a0| 66 6f 72 20 73 65 74 74 | 69 6e 67 20 74 68 65 20 |for sett|ing the |
|000030b0| 69 6e 73 65 72 74 69 6f | 6e 20 70 6f 69 6e 74 20 |insertio|n point |
|000030c0| 31 2e 0a 20 20 20 66 72 | 61 6d 65 20 2e 73 65 6c |1.. fr|ame .sel|
|000030d0| 65 63 74 2e 6d 61 69 6e | 2e 73 65 74 2e 6c 65 66 |ect.main|.set.lef|
|000030e0| 74 20 2d 62 67 20 24 43 | 6f 6e 66 69 67 53 65 74 |t -bg $C|onfigSet|
|000030f0| 28 63 42 47 31 29 0a 20 | 20 20 6c 61 62 65 6c 20 |(cBG1). | label |
|00003100| 2e 73 65 6c 65 63 74 2e | 6d 61 69 6e 2e 73 65 74 |.select.|main.set|
|00003110| 2e 6c 65 66 74 2e 69 6e | 73 74 72 20 5c 0a 09 09 |.left.in|str \...|
|00003120| 09 2d 62 67 20 24 43 6f | 6e 66 69 67 53 65 74 28 |.-bg $Co|nfigSet(|
|00003130| 63 42 47 31 29 5c 0a 09 | 09 09 2d 66 67 20 24 43 |cBG1)\..|..-fg $C|
|00003140| 6f 6e 66 69 67 53 65 74 | 28 63 46 47 31 29 5c 0a |onfigSet|(cFG1)\.|
|00003150| 09 09 09 2d 74 65 78 74 | 20 22 4c 65 66 74 20 49 |...-text| "Left I|
|00003160| 6e 73 65 72 74 69 6f 6e | 20 50 6f 69 6e 74 22 5c |nsertion| Point"\|
|00003170| 0a 09 09 09 2d 66 6f 6e | 74 20 24 43 6f 6e 66 69 |....-fon|t $Confi|
|00003180| 67 53 65 74 28 46 4e 54 | 5f 53 29 20 5c 0a 20 09 |gSet(FNT|_S) \. .|
|00003190| 09 09 2d 61 6e 63 68 6f | 72 20 77 0a 0a 20 20 20 |..-ancho|r w.. |
|000031a0| 65 6e 74 72 79 20 2e 73 | 65 6c 65 63 74 2e 6d 61 |entry .s|elect.ma|
|000031b0| 69 6e 2e 73 65 74 2e 6c | 65 66 74 2e 6c 61 62 65 |in.set.l|eft.labe|
|000031c0| 6c 20 5c 0a 09 09 09 2d | 62 67 20 24 43 6f 6e 66 |l \....-|bg $Conf|
|000031d0| 69 67 53 65 74 28 63 42 | 47 31 29 5c 0a 09 09 09 |igSet(cB|G1)\....|
|000031e0| 2d 66 67 20 24 43 6f 6e | 66 69 67 53 65 74 28 63 |-fg $Con|figSet(c|
|000031f0| 46 47 31 29 5c 0a 09 09 | 09 2d 74 65 78 74 76 61 |FG1)\...|.-textva|
|00003200| 72 69 61 62 6c 65 20 22 | 45 44 28 4c 65 66 74 29 |riable "|ED(Left)|
|00003210| 22 5c 0a 09 09 09 2d 66 | 6f 6e 74 20 24 43 6f 6e |"\....-f|ont $Con|
|00003220| 66 69 67 53 65 74 28 46 | 4e 54 5f 53 29 20 5c 0a |figSet(F|NT_S) \.|
|00003230| 09 09 09 2d 77 69 64 74 | 68 20 35 5c 0a 09 09 09 |...-widt|h 5\....|
|00003240| 2d 69 6e 73 65 72 74 62 | 61 63 6b 67 72 6f 75 6e |-insertb|ackgroun|
|00003250| 64 20 24 43 6f 6e 66 69 | 67 53 65 74 28 63 46 47 |d $Confi|gSet(cFG|
|00003260| 31 29 5c 0a 09 09 09 2d | 73 65 6c 65 63 74 66 6f |1)\....-|selectfo|
|00003270| 72 65 67 72 6f 75 6e 64 | 20 24 43 6f 6e 66 69 67 |reground| $Config|
|00003280| 53 65 74 28 63 41 46 47 | 29 5c 0a 09 09 09 2d 73 |Set(cAFG|)\....-s|
|00003290| 65 6c 65 63 74 62 61 63 | 6b 67 72 6f 75 6e 64 20 |electbac|kground |
|000032a0| 24 43 6f 6e 66 69 67 53 | 65 74 28 63 41 42 47 29 |$ConfigS|et(cABG)|
|000032b0| 5c 0a 09 09 09 2d 63 75 | 72 73 6f 72 20 61 72 72 |\....-cu|rsor arr|
|000032c0| 6f 77 0a 20 20 20 23 20 | 42 69 6e 64 20 74 68 65 |ow. # |Bind the|
|000032d0| 20 65 6e 74 72 79 20 77 | 69 74 68 20 73 70 65 63 | entry w|ith spec|
|000032e0| 69 61 6c 20 63 68 61 72 | 61 63 74 65 72 69 73 74 |ial char|acterist|
|000032f0| 69 63 73 2e 0a 20 20 20 | 62 69 6e 64 53 63 61 6c |ics.. |bindScal|
|00003300| 65 20 2e 73 65 6c 65 63 | 74 2e 6d 61 69 6e 2e 73 |e .selec|t.main.s|
|00003310| 65 74 2e 6c 65 66 74 20 | 2e 73 65 6c 65 63 74 2e |et.left |.select.|
|00003320| 6d 61 69 6e 2e 64 6f 6e | 65 2e 62 75 74 74 0a 09 |main.don|e.butt..|
|00003330| 09 20 0a 20 20 20 73 63 | 61 6c 65 20 2e 73 65 6c |. . sc|ale .sel|
|00003340| 65 63 74 2e 6d 61 69 6e | 2e 73 65 74 2e 6c 65 66 |ect.main|.set.lef|
|00003350| 74 2e 73 63 61 6c 65 5c | 0a 09 09 09 2d 73 68 6f |t.scale\|....-sho|
|00003360| 77 76 61 6c 75 65 20 30 | 5c 0a 09 09 09 2d 62 67 |wvalue 0|\....-bg|
|00003370| 20 24 43 6f 6e 66 69 67 | 53 65 74 28 63 42 47 31 | $Config|Set(cBG1|
|00003380| 29 5c 0a 09 09 09 2d 66 | 67 20 24 43 6f 6e 66 69 |)\....-f|g $Confi|
|00003390| 67 53 65 74 28 63 46 47 | 31 29 5c 0a 09 09 09 2d |gSet(cFG|1)\....-|
|000033a0| 61 63 74 69 76 65 66 6f | 72 65 67 72 6f 75 6e 64 |activefo|reground|
|000033b0| 20 24 43 6f 6e 66 69 67 | 53 65 74 28 63 41 42 47 | $Config|Set(cABG|
|000033c0| 29 5c 0a 09 09 09 2d 73 | 6c 69 64 65 72 66 6f 72 |)\....-s|liderfor|
|000033d0| 65 67 72 6f 75 6e 64 20 | 24 43 6f 6e 66 69 67 53 |eground |$ConfigS|
|000033e0| 65 74 28 63 42 47 32 29 | 5c 0a 09 09 09 2d 66 72 |et(cBG2)|\....-fr|
|000033f0| 6f 6d 20 30 20 2d 74 6f | 20 24 53 41 4d 50 4c 45 |om 0 -to| $SAMPLE|
|00003400| 28 53 69 7a 65 29 5c 0a | 09 09 09 2d 77 69 64 74 |(Size)\.|...-widt|
|00003410| 68 20 31 30 20 2d 6c 65 | 6e 67 74 68 20 31 30 30 |h 10 -le|ngth 100|
|00003420| 5c 0a 09 09 09 2d 6f 72 | 69 65 6e 74 20 68 6f 72 |\....-or|ient hor|
|00003430| 69 7a 6f 6e 74 61 6c 5c | 0a 09 09 09 2d 63 6f 6d |izontal\|....-com|
|00003440| 6d 61 6e 64 20 22 53 74 | 61 72 74 43 61 6c 6c 42 |mand "St|artCallB|
|00003450| 61 63 6b 22 0a 0a 0a 0a | 20 20 20 23 20 53 65 74 |ack"....| # Set|
|00003460| 20 69 6e 69 74 69 61 6c | 20 76 61 6c 75 65 20 6f | initial| value o|
|00003470| 66 20 73 63 61 6c 65 2c | 20 61 6e 64 20 75 70 64 |f scale,| and upd|
|00003480| 61 74 65 20 74 68 65 20 | 6c 61 62 65 6c 2e 0a 20 |ate the |label.. |
|00003490| 20 20 69 66 20 7b 5b 69 | 6e 66 6f 20 65 78 69 73 | if {[i|nfo exis|
|000034a0| 74 20 45 44 28 4c 65 66 | 74 29 5d 7d 20 7b 0a 09 |t ED(Lef|t)]} {..|
|000034b0| 09 69 66 20 7b 24 45 44 | 28 4c 65 66 74 29 3d 3d |.if {$ED|(Left)==|
|000034c0| 22 22 7d 20 7b 20 73 65 | 74 20 45 44 28 4c 65 66 |""} { se|t ED(Lef|
|000034d0| 74 29 20 30 20 7d 0a 09 | 09 2e 73 65 6c 65 63 74 |t) 0 }..|..select|
|000034e0| 2e 6d 61 69 6e 2e 73 65 | 74 2e 6c 65 66 74 2e 73 |.main.se|t.left.s|
|000034f0| 63 61 6c 65 20 73 65 74 | 20 24 45 44 28 4c 65 66 |cale set| $ED(Lef|
|00003500| 74 29 0a 20 20 20 7d 20 | 65 6c 73 65 20 7b 0a 09 |t). } |else {..|
|00003510| 73 65 74 20 45 44 28 4c | 65 66 74 29 20 5b 2e 73 |set ED(L|eft) [.s|
|00003520| 65 6c 65 63 74 2e 6d 61 | 69 6e 2e 73 65 74 2e 6c |elect.ma|in.set.l|
|00003530| 65 66 74 2e 73 63 61 6c | 65 20 67 65 74 5d 0a 20 |eft.scal|e get]. |
|00003540| 20 20 7d 0a 0a 20 20 20 | 23 20 50 61 63 6b 20 74 | }.. |# Pack t|
|00003550| 68 65 20 6c 65 66 74 20 | 73 63 61 6c 65 20 77 69 |he left |scale wi|
|00003560| 64 67 65 74 73 2e 0a 20 | 20 20 70 61 63 6b 20 2e |dgets.. | pack .|
|00003570| 73 65 6c 65 63 74 2e 6d | 61 69 6e 2e 73 65 74 2e |select.m|ain.set.|
|00003580| 6c 65 66 74 2e 69 6e 73 | 74 72 20 2d 66 69 6c 6c |left.ins|tr -fill|
|00003590| 20 78 20 2d 65 78 70 61 | 6e 64 20 31 20 2d 61 6e | x -expa|nd 1 -an|
|000035a0| 63 68 6f 72 20 77 0a 20 | 20 20 70 61 63 6b 20 2e |chor w. | pack .|
|000035b0| 73 65 6c 65 63 74 2e 6d | 61 69 6e 2e 73 65 74 2e |select.m|ain.set.|
|000035c0| 6c 65 66 74 2e 73 63 61 | 6c 65 5c 0a 09 2e 73 65 |left.sca|le\...se|
|000035d0| 6c 65 63 74 2e 6d 61 69 | 6e 2e 73 65 74 2e 6c 65 |lect.mai|n.set.le|
|000035e0| 66 74 2e 6c 61 62 65 6c | 20 5c 0a 09 20 20 2d 73 |ft.label| \.. -s|
|000035f0| 69 64 65 20 6c 65 66 74 | 20 2d 66 69 6c 6c 20 78 |ide left| -fill x|
|00003600| 20 2d 65 78 70 61 6e 64 | 20 31 20 0a 0a 20 20 20 | -expand| 1 .. |
|00003610| 23 20 54 68 65 20 73 63 | 61 6c 65 20 77 69 64 67 |# The sc|ale widg|
|00003620| 65 74 20 66 6f 72 20 73 | 65 74 74 69 6e 67 20 74 |et for s|etting t|
|00003630| 68 65 20 69 6e 73 65 72 | 74 69 6f 6e 20 70 6f 69 |he inser|tion poi|
|00003640| 6e 74 20 32 2e 0a 20 20 | 66 72 61 6d 65 20 2e 73 |nt 2.. |frame .s|
|00003650| 65 6c 65 63 74 2e 6d 61 | 69 6e 2e 73 65 74 2e 72 |elect.ma|in.set.r|
|00003660| 69 67 68 74 20 2d 62 67 | 20 24 43 6f 6e 66 69 67 |ight -bg| $Config|
|00003670| 53 65 74 28 63 42 47 31 | 29 0a 20 20 6c 61 62 65 |Set(cBG1|). labe|
|00003680| 6c 20 2e 73 65 6c 65 63 | 74 2e 6d 61 69 6e 2e 73 |l .selec|t.main.s|
|00003690| 65 74 2e 72 69 67 68 74 | 2e 69 6e 73 74 72 20 5c |et.right|.instr \|
|000036a0| 0a 09 09 09 2d 62 67 20 | 24 43 6f 6e 66 69 67 53 |....-bg |$ConfigS|
|000036b0| 65 74 28 63 42 47 31 29 | 5c 0a 09 09 09 2d 66 67 |et(cBG1)|\....-fg|
|000036c0| 20 24 43 6f 6e 66 69 67 | 53 65 74 28 63 46 47 31 | $Config|Set(cFG1|
|000036d0| 29 5c 0a 09 09 09 2d 74 | 65 78 74 20 22 52 69 67 |)\....-t|ext "Rig|
|000036e0| 68 74 20 49 6e 73 65 72 | 74 69 6f 6e 20 50 6f 69 |ht Inser|tion Poi|
|000036f0| 6e 74 22 5c 0a 09 09 09 | 2d 66 6f 6e 74 20 24 43 |nt"\....|-font $C|
|00003700| 6f 6e 66 69 67 53 65 74 | 28 46 4e 54 5f 53 29 20 |onfigSet|(FNT_S) |
|00003710| 5c 0a 20 09 09 09 2d 61 | 6e 63 68 6f 72 20 77 0a |\. ...-a|nchor w.|
|00003720| 20 20 20 65 6e 74 72 79 | 20 2e 73 65 6c 65 63 74 | entry| .select|
|00003730| 2e 6d 61 69 6e 2e 73 65 | 74 2e 72 69 67 68 74 2e |.main.se|t.right.|
|00003740| 6c 61 62 65 6c 20 5c 0a | 09 09 09 2d 62 67 20 24 |label \.|...-bg $|
|00003750| 43 6f 6e 66 69 67 53 65 | 74 28 63 42 47 31 29 5c |ConfigSe|t(cBG1)\|
|00003760| 0a 09 09 09 2d 66 67 20 | 24 43 6f 6e 66 69 67 53 |....-fg |$ConfigS|
|00003770| 65 74 28 63 46 47 31 29 | 5c 0a 09 09 09 2d 74 65 |et(cFG1)|\....-te|
|00003780| 78 74 76 61 72 69 61 62 | 6c 65 20 22 45 44 28 52 |xtvariab|le "ED(R|
|00003790| 69 67 68 74 29 22 5c 0a | 09 09 09 2d 66 6f 6e 74 |ight)"\.|...-font|
|000037a0| 20 24 43 6f 6e 66 69 67 | 53 65 74 28 46 4e 54 5f | $Config|Set(FNT_|
|000037b0| 53 29 20 5c 0a 09 09 09 | 2d 77 69 64 74 68 20 35 |S) \....|-width 5|
|000037c0| 5c 0a 09 09 09 2d 69 6e | 73 65 72 74 62 61 63 6b |\....-in|sertback|
|000037d0| 67 72 6f 75 6e 64 20 24 | 43 6f 6e 66 69 67 53 65 |ground $|ConfigSe|
|000037e0| 74 28 63 46 47 31 29 5c | 0a 09 09 09 2d 73 65 6c |t(cFG1)\|....-sel|
|000037f0| 65 63 74 66 6f 72 65 67 | 72 6f 75 6e 64 20 24 43 |ectforeg|round $C|
|00003800| 6f 6e 66 69 67 53 65 74 | 28 63 41 46 47 29 5c 0a |onfigSet|(cAFG)\.|
|00003810| 09 09 09 2d 73 65 6c 65 | 63 74 62 61 63 6b 67 72 |...-sele|ctbackgr|
|00003820| 6f 75 6e 64 20 24 43 6f | 6e 66 69 67 53 65 74 28 |ound $Co|nfigSet(|
|00003830| 63 41 42 47 29 5c 0a 09 | 09 09 2d 63 75 72 73 6f |cABG)\..|..-curso|
|00003840| 72 20 61 72 72 6f 77 0a | 20 20 20 23 20 42 69 6e |r arrow.| # Bin|
|00003850| 64 20 74 68 65 20 65 6e | 74 72 79 20 77 69 74 68 |d the en|try with|
|00003860| 20 73 70 65 63 69 61 6c | 20 63 68 61 72 61 63 74 | special| charact|
|00003870| 65 72 69 73 74 69 63 73 | 2e 0a 20 20 20 62 69 6e |eristics|.. bin|
|00003880| 64 53 63 61 6c 65 20 2e | 73 65 6c 65 63 74 2e 6d |dScale .|select.m|
|00003890| 61 69 6e 2e 73 65 74 2e | 72 69 67 68 74 20 2e 73 |ain.set.|right .s|
|000038a0| 65 6c 65 63 74 2e 6d 61 | 69 6e 2e 64 6f 6e 65 2e |elect.ma|in.done.|
|000038b0| 62 75 74 74 0a 09 09 20 | 0a 20 20 20 73 63 61 6c |butt... |. scal|
|000038c0| 65 20 2e 73 65 6c 65 63 | 74 2e 6d 61 69 6e 2e 73 |e .selec|t.main.s|
|000038d0| 65 74 2e 72 69 67 68 74 | 2e 73 63 61 6c 65 5c 0a |et.right|.scale\.|
|000038e0| 09 09 09 2d 73 68 6f 77 | 76 61 6c 75 65 20 30 5c |...-show|value 0\|
|000038f0| 0a 09 09 09 2d 62 67 20 | 24 43 6f 6e 66 69 67 53 |....-bg |$ConfigS|
|00003900| 65 74 28 63 42 47 31 29 | 5c 0a 09 09 09 2d 66 67 |et(cBG1)|\....-fg|
|00003910| 20 24 43 6f 6e 66 69 67 | 53 65 74 28 63 46 47 31 | $Config|Set(cFG1|
|00003920| 29 5c 0a 09 09 09 2d 61 | 63 74 69 76 65 66 6f 72 |)\....-a|ctivefor|
|00003930| 65 67 72 6f 75 6e 64 20 | 24 43 6f 6e 66 69 67 53 |eground |$ConfigS|
|00003940| 65 74 28 63 41 42 47 29 | 5c 0a 09 09 09 2d 73 6c |et(cABG)|\....-sl|
|00003950| 69 64 65 72 66 6f 72 65 | 67 72 6f 75 6e 64 20 24 |iderfore|ground $|
|00003960| 43 6f 6e 66 69 67 53 65 | 74 28 63 42 47 32 29 5c |ConfigSe|t(cBG2)\|
|00003970| 0a 09 09 09 2d 66 72 6f | 6d 20 30 20 2d 74 6f 20 |....-fro|m 0 -to |
|00003980| 24 53 41 4d 50 4c 45 28 | 53 69 7a 65 29 5c 0a 09 |$SAMPLE(|Size)\..|
|00003990| 09 09 2d 77 69 64 74 68 | 20 31 30 20 2d 6c 65 6e |..-width| 10 -len|
|000039a0| 67 74 68 20 31 30 30 5c | 0a 09 09 09 2d 6f 72 69 |gth 100\|....-ori|
|000039b0| 65 6e 74 20 68 6f 72 69 | 7a 6f 6e 74 61 6c 5c 0a |ent hori|zontal\.|
|000039c0| 09 09 09 2d 63 6f 6d 6d | 61 6e 64 20 22 45 6e 64 |...-comm|and "End|
|000039d0| 43 61 6c 6c 42 61 63 6b | 22 0a 0a 20 20 20 23 20 |CallBack|".. # |
|000039e0| 53 65 74 20 69 6e 69 74 | 69 61 6c 20 76 61 6c 75 |Set init|ial valu|
|000039f0| 65 20 6f 66 20 73 63 61 | 6c 65 2c 20 61 6e 64 20 |e of sca|le, and |
|00003a00| 75 70 64 61 74 65 20 74 | 68 65 20 6c 61 62 65 6c |update t|he label|
|00003a10| 2e 0a 20 20 20 69 66 20 | 7b 5b 69 6e 66 6f 20 65 |.. if |{[info e|
|00003a20| 78 69 73 74 20 45 44 28 | 52 69 67 68 74 29 5d 7d |xist ED(|Right)]}|
|00003a30| 20 7b 20 0a 09 09 69 66 | 20 7b 24 45 44 28 52 69 | { ...if| {$ED(Ri|
|00003a40| 67 68 74 29 3d 3d 22 22 | 7d 20 7b 20 73 65 74 20 |ght)==""|} { set |
|00003a50| 45 44 28 52 69 67 68 74 | 29 20 30 20 7d 0a 09 09 |ED(Right|) 0 }...|
|00003a60| 2e 73 65 6c 65 63 74 2e | 6d 61 69 6e 2e 73 65 74 |.select.|main.set|
|00003a70| 2e 72 69 67 68 74 2e 73 | 63 61 6c 65 20 73 65 74 |.right.s|cale set|
|00003a80| 20 24 45 44 28 52 69 67 | 68 74 29 0a 20 20 20 7d | $ED(Rig|ht). }|
|00003a90| 20 65 6c 73 65 20 7b 0a | 09 73 65 74 20 45 44 28 | else {.|.set ED(|
|00003aa0| 52 69 67 68 74 29 20 5b | 2e 73 65 6c 65 63 74 2e |Right) [|.select.|
|00003ab0| 6d 61 69 6e 2e 73 65 74 | 2e 72 69 67 68 74 2e 73 |main.set|.right.s|
|00003ac0| 63 61 6c 65 20 67 65 74 | 5d 0a 20 20 20 7d 0a 0a |cale get|]. }..|
|00003ad0| 20 20 20 23 20 50 61 63 | 6b 20 74 68 65 20 72 69 | # Pac|k the ri|
|00003ae0| 67 68 74 20 73 63 61 6c | 65 20 77 69 64 67 65 74 |ght scal|e widget|
|00003af0| 73 2e 0a 20 20 20 70 61 | 63 6b 20 2e 73 65 6c 65 |s.. pa|ck .sele|
|00003b00| 63 74 2e 6d 61 69 6e 2e | 73 65 74 2e 72 69 67 68 |ct.main.|set.righ|
|00003b10| 74 2e 69 6e 73 74 72 20 | 2d 66 69 6c 6c 20 78 20 |t.instr |-fill x |
|00003b20| 2d 65 78 70 61 6e 64 20 | 31 20 2d 61 6e 63 68 6f |-expand |1 -ancho|
|00003b30| 72 20 77 0a 20 20 20 70 | 61 63 6b 20 2e 73 65 6c |r w. p|ack .sel|
|00003b40| 65 63 74 2e 6d 61 69 6e | 2e 73 65 74 2e 72 69 67 |ect.main|.set.rig|
|00003b50| 68 74 2e 73 63 61 6c 65 | 5c 0a 09 2e 73 65 6c 65 |ht.scale|\...sele|
|00003b60| 63 74 2e 6d 61 69 6e 2e | 73 65 74 2e 72 69 67 68 |ct.main.|set.righ|
|00003b70| 74 2e 6c 61 62 65 6c 20 | 5c 0a 09 20 20 2d 73 69 |t.label |\.. -si|
|00003b80| 64 65 20 6c 65 66 74 20 | 2d 66 69 6c 6c 20 78 20 |de left |-fill x |
|00003b90| 2d 65 78 70 61 6e 64 20 | 31 0a 0a 20 20 20 23 20 |-expand |1.. # |
|00003ba0| 50 61 63 6b 20 74 68 65 | 20 72 69 67 68 74 20 61 |Pack the| right a|
|00003bb0| 6e 64 20 6c 65 66 74 20 | 73 63 61 6c 65 73 2e 0a |nd left |scales..|
|00003bc0| 20 20 20 70 61 63 6b 20 | 2e 73 65 6c 65 63 74 2e | pack |.select.|
|00003bd0| 6d 61 69 6e 2e 73 65 74 | 2e 6c 65 66 74 5c 0a 09 |main.set|.left\..|
|00003be0| 2e 73 65 6c 65 63 74 2e | 6d 61 69 6e 2e 73 65 74 |.select.|main.set|
|00003bf0| 2e 72 69 67 68 74 5c 0a | 09 2d 65 78 70 61 6e 64 |.right\.|.-expand|
|00003c00| 20 31 20 2d 70 61 64 78 | 20 35 6d 20 2d 70 61 64 | 1 -padx| 5m -pad|
|00003c10| 79 20 33 6d 20 2d 73 69 | 64 65 20 6c 65 66 74 0a |y 3m -si|de left.|
|00003c20| 0a 20 20 20 23 20 4c 61 | 62 65 6c 20 66 6f 72 20 |. # La|bel for |
|00003c30| 6d 61 69 6e 20 77 69 6e | 64 6f 77 0a 20 20 20 6c |main win|dow. l|
|00003c40| 61 62 65 6c 20 2e 73 65 | 6c 65 63 74 2e 6d 61 69 |abel .se|lect.mai|
|00003c50| 6e 2e 6c 61 62 65 6c 20 | 20 5c 0a 09 09 2d 62 67 |n.label | \...-bg|
|00003c60| 20 24 43 6f 6e 66 69 67 | 53 65 74 28 63 42 47 31 | $Config|Set(cBG1|
|00003c70| 29 5c 0a 09 09 2d 66 67 | 20 24 43 6f 6e 66 69 67 |)\...-fg| $Config|
|00003c80| 53 65 74 28 63 46 47 31 | 29 5c 0a 09 09 2d 74 65 |Set(cFG1|)\...-te|
|00003c90| 78 74 20 22 53 65 74 20 | 74 68 65 20 50 6f 73 69 |xt "Set |the Posi|
|00003ca0| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 4c 65 66 74 |tion of |the Left|
|00003cb0| 20 61 6e 64 20 52 69 67 | 68 74 20 4d 61 72 6b 69 | and Rig|ht Marki|
|00003cc0| 6e 67 20 50 6f 69 6e 74 | 73 22 5c 0a 09 09 2d 66 |ng Point|s"\...-f|
|00003cd0| 6f 6e 74 20 24 43 6f 6e | 66 69 67 53 65 74 28 46 |ont $Con|figSet(F|
|00003ce0| 4e 54 5f 53 29 20 5c 0a | 20 09 09 2d 61 6e 63 68 |NT_S) \.| ..-anch|
|00003cf0| 6f 72 20 77 0a 0a 20 20 | 23 20 54 68 65 20 6c 61 |or w.. |# The la|
|00003d00| 62 65 6c 73 20 74 6f 20 | 73 68 6f 77 20 74 68 65 |bels to |show the|
|00003d10| 20 74 69 6d 65 20 76 61 | 6c 75 65 20 6f 66 20 74 | time va|lue of t|
|00003d20| 68 65 20 69 6e 73 65 72 | 74 69 6f 6e 20 70 6f 69 |he inser|tion poi|
|00003d30| 6e 74 73 2e 0a 20 20 66 | 72 61 6d 65 20 2e 73 65 |nts.. f|rame .se|
|00003d40| 6c 65 63 74 2e 6d 61 69 | 6e 2e 74 69 6d 65 20 2d |lect.mai|n.time -|
|00003d50| 62 67 20 24 43 6f 6e 66 | 69 67 53 65 74 28 63 42 |bg $Conf|igSet(cB|
|00003d60| 47 31 29 0a 20 20 6c 61 | 62 65 6c 20 2e 73 65 6c |G1). la|bel .sel|
|00003d70| 65 63 74 2e 6d 61 69 6e | 2e 74 69 6d 65 2e 6c 65 |ect.main|.time.le|
|00003d80| 66 74 09 5c 0a 09 09 09 | 2d 62 67 20 24 43 6f 6e |ft.\....|-bg $Con|
|00003d90| 66 69 67 53 65 74 28 63 | 42 47 32 29 5c 0a 09 09 |figSet(c|BG2)\...|
|00003da0| 09 2d 66 67 20 24 43 6f | 6e 66 69 67 53 65 74 28 |.-fg $Co|nfigSet(|
|00003db0| 63 46 47 32 29 5c 0a 09 | 09 09 2d 74 65 78 74 76 |cFG2)\..|..-textv|
|00003dc0| 61 72 69 61 62 6c 65 20 | 50 4c 4f 54 28 53 74 61 |ariable |PLOT(Sta|
|00003dd0| 72 74 29 5c 0a 09 09 09 | 2d 66 6f 6e 74 20 24 43 |rt)\....|-font $C|
|00003de0| 6f 6e 66 69 67 53 65 74 | 28 46 4e 54 5f 53 29 20 |onfigSet|(FNT_S) |
|00003df0| 5c 0a 20 09 09 09 2d 61 | 6e 63 68 6f 72 20 63 5c |\. ...-a|nchor c\|
|00003e00| 0a 09 09 09 2d 72 65 6c | 69 65 66 20 67 72 6f 6f |....-rel|ief groo|
|00003e10| 76 65 0a 20 20 6c 61 62 | 65 6c 20 2e 73 65 6c 65 |ve. lab|el .sele|
|00003e20| 63 74 2e 6d 61 69 6e 2e | 74 69 6d 65 2e 72 69 67 |ct.main.|time.rig|
|00003e30| 68 74 20 5c 0a 09 09 09 | 2d 62 67 20 24 43 6f 6e |ht \....|-bg $Con|
|00003e40| 66 69 67 53 65 74 28 63 | 42 47 32 29 5c 0a 09 09 |figSet(c|BG2)\...|
|00003e50| 09 2d 66 67 20 24 43 6f | 6e 66 69 67 53 65 74 28 |.-fg $Co|nfigSet(|
|00003e60| 63 46 47 32 29 5c 0a 09 | 09 09 2d 74 65 78 74 76 |cFG2)\..|..-textv|
|00003e70| 61 72 69 61 62 6c 65 20 | 50 4c 4f 54 28 45 6e 64 |ariable |PLOT(End|
|00003e80| 29 5c 0a 09 09 09 2d 66 | 6f 6e 74 20 24 43 6f 6e |)\....-f|ont $Con|
|00003e90| 66 69 67 53 65 74 28 46 | 4e 54 5f 53 29 20 5c 0a |figSet(F|NT_S) \.|
|00003ea0| 20 09 09 09 2d 61 6e 63 | 68 6f 72 20 63 5c 0a 09 | ...-anc|hor c\..|
|00003eb0| 09 09 2d 72 65 6c 69 65 | 66 20 67 72 6f 6f 76 65 |..-relie|f groove|
|00003ec0| 0a 20 20 23 20 50 61 63 | 6b 20 74 68 65 20 74 69 |. # Pac|k the ti|
|00003ed0| 6d 65 20 6c 61 62 65 6c | 73 2e 20 0a 20 20 70 61 |me label|s. . pa|
|00003ee0| 63 6b 20 2e 73 65 6c 65 | 63 74 2e 6d 61 69 6e 2e |ck .sele|ct.main.|
|00003ef0| 74 69 6d 65 2e 6c 65 66 | 74 20 2e 73 65 6c 65 63 |time.lef|t .selec|
|00003f00| 74 2e 6d 61 69 6e 2e 74 | 69 6d 65 2e 72 69 67 68 |t.main.t|ime.righ|
|00003f10| 74 5c 0a 09 2d 73 69 64 | 65 20 6c 65 66 74 20 20 |t\..-sid|e left |
|00003f20| 2d 65 78 70 61 6e 64 20 | 31 20 2d 70 61 64 78 20 |-expand |1 -padx |
|00003f30| 31 35 0a 0a 20 20 23 20 | 41 70 70 6c 79 20 43 68 |15.. # |Apply Ch|
|00003f40| 65 63 6b 62 75 74 74 6f | 6e 0a 20 20 63 68 65 63 |eckbutto|n. chec|
|00003f50| 6b 62 75 74 74 6f 6e 20 | 2e 73 65 6c 65 63 74 2e |kbutton |.select.|
|00003f60| 6d 61 69 6e 2e 61 70 70 | 6c 79 20 5c 0a 09 09 09 |main.app|ly \....|
|00003f70| 2d 66 6f 72 65 67 72 6f | 75 6e 64 20 24 43 6f 6e |-foregro|und $Con|
|00003f80| 66 69 67 53 65 74 28 63 | 46 47 32 29 20 5c 0a 09 |figSet(c|FG2) \..|
|00003f90| 09 09 2d 62 61 63 6b 67 | 72 6f 75 6e 64 20 24 43 |..-backg|round $C|
|00003fa0| 6f 6e 66 69 67 53 65 74 | 28 63 42 47 32 29 20 5c |onfigSet|(cBG2) \|
|00003fb0| 0a 09 09 09 2d 61 63 74 | 69 76 65 62 61 63 6b 67 |....-act|ivebackg|
|00003fc0| 72 6f 75 6e 64 20 24 43 | 6f 6e 66 69 67 53 65 74 |round $C|onfigSet|
|00003fd0| 28 63 41 42 47 29 20 5c | 0a 09 09 09 2d 61 63 74 |(cABG) \|....-act|
|00003fe0| 69 76 65 66 6f 72 65 67 | 72 6f 75 6e 64 20 24 43 |iveforeg|round $C|
|00003ff0| 6f 6e 66 69 67 53 65 74 | 28 63 41 46 47 29 20 5c |onfigSet|(cAFG) \|
|00004000| 0a 09 09 09 2d 64 69 73 | 61 62 6c 65 64 66 6f 72 |....-dis|abledfor|
|00004010| 65 67 72 6f 75 6e 64 20 | 24 43 6f 6e 66 69 67 53 |eground |$ConfigS|
|00004020| 65 74 28 63 44 46 47 29 | 20 5c 0a 09 09 09 2d 74 |et(cDFG)| \....-t|
|00004030| 65 78 74 20 22 4d 61 72 | 6b 20 52 61 6e 67 65 22 |ext "Mar|k Range"|
|00004040| 5c 0a 09 09 09 2d 73 65 | 6c 65 63 74 6f 72 20 24 |\....-se|lector $|
|00004050| 43 6f 6e 66 69 67 53 65 | 74 28 63 41 46 47 29 5c |ConfigSe|t(cAFG)\|
|00004060| 0a 09 09 09 2d 61 6e 63 | 68 6f 72 20 77 5c 0a 09 |....-anc|hor w\..|
|00004070| 09 09 2d 72 65 6c 69 65 | 66 20 67 72 6f 6f 76 65 |..-relie|f groove|
|00004080| 5c 0a 09 09 09 2d 76 61 | 72 69 61 62 6c 65 20 45 |\....-va|riable E|
|00004090| 44 28 41 70 70 6c 79 29 | 5c 0a 09 09 09 2d 63 6f |D(Apply)|\....-co|
|000040a0| 6d 6d 61 6e 64 20 7b 53 | 65 6c 65 63 74 41 70 70 |mmand {S|electApp|
|000040b0| 6c 79 7d 0a 0a 20 20 20 | 23 20 44 6f 6e 65 20 42 |ly}.. |# Done B|
|000040c0| 75 74 74 6f 6e 2e 0a 20 | 20 20 66 72 61 6d 65 20 |utton.. | frame |
|000040d0| 2e 73 65 6c 65 63 74 2e | 6d 61 69 6e 2e 64 6f 6e |.select.|main.don|
|000040e0| 65 20 2d 62 67 20 24 43 | 6f 6e 66 69 67 53 65 74 |e -bg $C|onfigSet|
|000040f0| 28 63 42 47 31 29 5c 0a | 09 09 09 20 20 2d 72 65 |(cBG1)\.|... -re|
|00004100| 6c 69 65 66 20 67 72 6f | 6f 76 65 5c 0a 09 09 09 |lief gro|ove\....|
|00004110| 20 20 2d 62 64 20 32 0a | 20 20 20 62 75 74 74 6f | -bd 2.| butto|
|00004120| 6e 20 2e 73 65 6c 65 63 | 74 2e 6d 61 69 6e 2e 64 |n .selec|t.main.d|
|00004130| 6f 6e 65 2e 62 75 74 74 | 20 5c 0a 09 09 09 2d 66 |one.butt| \....-f|
|00004140| 6f 72 65 67 72 6f 75 6e | 64 20 24 43 6f 6e 66 69 |oregroun|d $Confi|
|00004150| 67 53 65 74 28 63 46 47 | 32 29 20 5c 0a 09 09 09 |gSet(cFG|2) \....|
|00004160| 2d 62 61 63 6b 67 72 6f | 75 6e 64 20 24 43 6f 6e |-backgro|und $Con|
|00004170| 66 69 67 53 65 74 28 63 | 42 47 32 29 20 5c 0a 09 |figSet(c|BG2) \..|
|00004180| 09 09 2d 61 63 74 69 76 | 65 62 61 63 6b 67 72 6f |..-activ|ebackgro|
|00004190| 75 6e 64 20 24 43 6f 6e | 66 69 67 53 65 74 28 63 |und $Con|figSet(c|
|000041a0| 41 42 47 29 20 5c 0a 09 | 09 09 2d 61 63 74 69 76 |ABG) \..|..-activ|
|000041b0| 65 66 6f 72 65 67 72 6f | 75 6e 64 20 24 43 6f 6e |eforegro|und $Con|
|000041c0| 66 69 67 53 65 74 28 63 | 41 46 47 29 20 5c 0a 09 |figSet(c|AFG) \..|
|000041d0| 09 09 2d 64 69 73 61 62 | 6c 65 64 66 6f 72 65 67 |..-disab|ledforeg|
|000041e0| 72 6f 75 6e 64 20 24 43 | 6f 6e 66 69 67 53 65 74 |round $C|onfigSet|
|000041f0| 28 63 44 46 47 29 20 5c | 0a 20 09 09 09 2d 74 65 |(cDFG) \|. ...-te|
|00004200| 78 74 20 44 6f 6e 65 5c | 0a 09 09 09 2d 63 6f 6d |xt Done\|....-com|
|00004210| 6d 61 6e 64 20 7b 67 6c | 6f 62 61 6c 20 45 44 3b |mand {gl|obal ED;|
|00004220| 73 65 74 20 45 44 28 41 | 70 70 6c 79 29 20 30 20 |set ED(A|pply) 0 |
|00004230| 3b 64 65 73 74 72 6f 79 | 20 2e 73 65 6c 65 63 74 |;destroy| .select|
|00004240| 7d 0a 20 20 20 23 20 50 | 61 63 6b 20 74 68 65 20 |}. # P|ack the |
|00004250| 64 6f 6e 65 20 62 75 74 | 74 6f 6e 2e 0a 20 20 20 |done but|ton.. |
|00004260| 70 61 63 6b 20 2e 73 65 | 6c 65 63 74 2e 6d 61 69 |pack .se|lect.mai|
|00004270| 6e 2e 64 6f 6e 65 2e 62 | 75 74 74 20 2d 65 78 70 |n.done.b|utt -exp|
|00004280| 61 6e 64 20 31 20 2d 69 | 70 61 64 78 20 32 6d 20 |and 1 -i|padx 2m |
|00004290| 2d 70 61 64 79 20 33 6d | 0a 20 20 20 23 20 42 69 |-pady 3m|. # Bi|
|000042a0| 6e 64 20 74 68 65 20 72 | 65 74 75 72 6e 20 6b 65 |nd the r|eturn ke|
|000042b0| 79 20 74 6f 20 69 6e 76 | 6f 6b 65 20 74 68 65 20 |y to inv|oke the |
|000042c0| 64 6f 6e 65 20 62 75 74 | 74 6f 6e 2e 0a 20 20 20 |done but|ton.. |
|000042d0| 62 69 6e 64 20 2e 73 65 | 6c 65 63 74 2e 6d 61 69 |bind .se|lect.mai|
|000042e0| 6e 2e 64 6f 6e 65 2e 62 | 75 74 74 20 3c 52 65 74 |n.done.b|utt <Ret|
|000042f0| 75 72 6e 3e 20 7b 20 2e | 73 65 6c 65 63 74 2e 6d |urn> { .|select.m|
|00004300| 61 69 6e 2e 64 6f 6e 65 | 2e 62 75 74 74 20 69 6e |ain.done|.butt in|
|00004310| 76 6f 6b 65 20 7d 0a 20 | 20 20 23 20 53 65 74 20 |voke }. | # Set |
|00004320| 74 68 65 20 66 6f 63 75 | 73 20 6f 6e 20 74 68 65 |the focu|s on the|
|00004330| 20 64 6f 6e 65 20 62 75 | 74 74 6f 6e 2e 0a 20 20 | done bu|tton.. |
|00004340| 20 66 6f 63 75 73 20 2e | 73 65 6c 65 63 74 2e 6d | focus .|select.m|
|00004350| 61 69 6e 2e 64 6f 6e 65 | 2e 62 75 74 74 0a 0a 0a |ain.done|.butt...|
|00004360| 20 20 20 23 20 50 61 63 | 6b 20 69 6e 74 6f 20 6d | # Pac|k into m|
|00004370| 61 69 6e 2e 0a 20 20 20 | 70 61 63 6b 20 2e 73 65 |ain.. |pack .se|
|00004380| 6c 65 63 74 2e 6d 61 69 | 6e 2e 6c 61 62 65 6c 20 |lect.mai|n.label |
|00004390| 5c 0a 09 2e 73 65 6c 65 | 63 74 2e 6d 61 69 6e 2e |\...sele|ct.main.|
|000043a0| 73 65 74 5c 0a 09 2e 73 | 65 6c 65 63 74 2e 6d 61 |set\...s|elect.ma|
|000043b0| 69 6e 2e 74 69 6d 65 5c | 0a 09 2e 73 65 6c 65 63 |in.time\|...selec|
|000043c0| 74 2e 6d 61 69 6e 2e 64 | 6f 6e 65 5c 0a 09 2d 66 |t.main.d|one\..-f|
|000043d0| 69 6c 6c 20 62 6f 74 68 | 20 2d 65 78 70 61 6e 64 |ill both| -expand|
|000043e0| 20 31 20 2d 73 69 64 65 | 20 74 6f 70 0a 20 20 20 | 1 -side| top. |
|000043f0| 70 61 63 6b 20 2e 73 65 | 6c 65 63 74 2e 6d 61 69 |pack .se|lect.mai|
|00004400| 6e 2e 61 70 70 6c 79 20 | 2d 62 65 66 6f 72 65 20 |n.apply |-before |
|00004410| 2e 73 65 6c 65 63 74 2e | 6d 61 69 6e 2e 64 6f 6e |.select.|main.don|
|00004420| 65 20 2d 61 6e 63 68 6f | 72 20 77 20 2d 66 69 6c |e -ancho|r w -fil|
|00004430| 6c 20 78 20 2d 65 78 70 | 61 6e 64 20 31 5c 0a 09 |l x -exp|and 1\..|
|00004440| 09 09 20 20 2d 70 61 64 | 79 20 31 6d 20 0a 20 20 |.. -pad|y 1m . |
|00004450| 20 23 20 50 61 63 6b 20 | 4d 61 69 6e 2e 0a 20 20 | # Pack |Main.. |
|00004460| 20 70 61 63 6b 20 2e 73 | 65 6c 65 63 74 2e 6d 61 | pack .s|elect.ma|
|00004470| 69 6e 20 2d 66 69 6c 6c | 20 62 6f 74 68 20 2d 65 |in -fill| both -e|
|00004480| 78 70 61 6e 64 20 31 0a | 7d 0a 0a 23 23 23 23 23 |xpand 1.|}..#####|
|00004490| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000044a0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000044b0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000044c0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 0a 23 |########|######.#|
|000044d0| 0a 23 20 54 68 69 73 20 | 70 72 6f 63 65 64 75 72 |.# This |procedur|
|000044e0| 65 20 69 73 20 74 68 65 | 20 63 61 6c 6c 62 61 63 |e is the| callbac|
|000044f0| 6b 20 74 6f 20 74 68 65 | 20 45 64 69 74 2d 5a 6f |k to the| Edit-Zo|
|00004500| 6f 6d 20 6d 65 6e 75 20 | 69 74 65 6d 2e 0a 23 20 |om menu |item..# |
|00004510| 54 68 65 20 70 61 72 61 | 6d 65 74 65 72 20 64 69 |The para|meter di|
|00004520| 72 65 63 74 69 6f 6e 20 | 68 61 73 20 74 68 72 65 |rection |has thre|
|00004530| 65 20 61 63 63 65 70 74 | 61 62 6c 65 20 76 61 6c |e accept|able val|
|00004540| 75 65 73 3a 0a 23 20 31 | 2e 20 75 70 20 20 20 3a |ues:.# 1|. up :|
|00004550| 20 54 68 69 73 20 61 64 | 6a 75 73 74 73 20 74 68 | This ad|justs th|
|00004560| 65 20 76 69 65 77 20 69 | 6e 20 74 68 65 20 65 64 |e view i|n the ed|
|00004570| 69 74 69 6e 67 20 70 6c | 6f 74 20 73 6f 20 74 68 |iting pl|ot so th|
|00004580| 61 74 20 74 68 65 0a 23 | 09 20 20 20 20 6d 61 72 |at the.#|. mar|
|00004590| 6b 65 64 20 61 72 65 61 | 20 66 69 6c 6c 73 20 74 |ked area| fills t|
|000045a0| 68 65 20 65 6e 74 69 72 | 65 20 61 72 65 61 2e 0a |he entir|e area..|
|000045b0| 23 20 32 2e 20 64 6f 77 | 6e 20 3a 20 54 68 69 73 |# 2. dow|n : This|
|000045c0| 20 66 69 6c 6c 73 20 74 | 68 65 20 65 64 69 74 69 | fills t|he editi|
|000045d0| 6e 67 20 70 6c 6f 74 20 | 77 69 74 68 20 74 68 65 |ng plot |with the|
|000045e0| 20 6c 61 73 74 20 7a 6f | 6f 6d 2c 20 77 69 74 68 | last zo|om, with|
|000045f0| 20 74 68 65 0a 23 09 20 | 20 20 20 65 6e 74 69 72 | the.#. | entir|
|00004600| 65 20 73 61 6d 70 6c 65 | 20 66 69 6c 6c 69 6e 67 |e sample| filling|
|00004610| 20 74 68 65 20 70 6c 6f | 74 20 69 6e 20 74 68 65 | the plo|t in the|
|00004620| 20 63 61 73 65 20 6f 66 | 20 74 68 65 72 65 20 6e | case of| there n|
|00004630| 6f 74 20 0a 23 09 20 20 | 20 20 62 65 69 6e 67 20 |ot .#. | being |
|00004640| 61 20 70 72 65 76 69 6f | 75 73 20 76 69 65 77 2e |a previo|us view.|
|00004650| 0a 23 20 33 2e 20 69 6e | 69 74 20 3a 20 54 68 69 |.# 3. in|it : Thi|
|00004660| 73 20 74 61 6b 65 73 20 | 63 61 72 65 20 6f 66 20 |s takes |care of |
|00004670| 69 6e 69 74 69 61 6c 69 | 73 61 74 69 6f 6e 20 6f |initiali|sation o|
|00004680| 66 20 74 68 65 20 7a 6f | 6f 6d 20 76 61 72 69 61 |f the zo|om varia|
|00004690| 62 6c 65 73 20 65 74 63 | 2e 0a 70 72 6f 63 20 5a |bles etc|..proc Z|
|000046a0| 6f 6f 6d 20 7b 7b 64 69 | 72 65 63 74 69 6f 6e 20 |oom {{di|rection |
|000046b0| 75 70 7d 7d 20 7b 0a 20 | 20 20 67 6c 6f 62 61 6c |up}} {. | global|
|000046c0| 20 43 6f 6e 66 69 67 53 | 65 74 20 46 49 4c 45 20 | ConfigS|et FILE |
|000046d0| 46 4c 41 47 20 50 4c 4f | 54 20 0a 0a 20 20 20 23 |FLAG PLO|T .. #|
|000046e0| 20 54 68 65 20 7a 6f 6f | 6d 20 75 70 20 6f 70 65 | The zoo|m up ope|
|000046f0| 72 61 74 69 6f 6e 3a 20 | 0a 20 20 20 69 66 20 7b |ration: |. if {|
|00004700| 24 46 4c 41 47 28 4d 61 | 72 6b 65 64 29 20 26 26 |$FLAG(Ma|rked) &&|
|00004710| 20 24 64 69 72 65 63 74 | 69 6f 6e 3d 3d 22 75 70 | $direct|ion=="up|
|00004720| 22 20 26 26 20 24 50 4c | 4f 54 28 42 6c 6f 63 6b |" && $PL|OT(Block|
|00004730| 73 69 7a 65 29 3e 32 20 | 7d 20 7b 0a 0a 09 23 20 |size)>2 |} {...# |
|00004740| 45 6e 61 62 6c 65 20 64 | 6f 77 6e 20 62 75 74 74 |Enable d|own butt|
|00004750| 6f 6e 20 69 6e 20 74 68 | 65 20 6d 65 6e 75 2e 0a |on in th|e menu..|
|00004760| 09 4d 65 6e 75 49 74 65 | 6d 44 69 73 61 62 6c 65 |.MenuIte|mDisable|
|00004770| 20 2e 6d 65 6e 75 62 61 | 72 2e 65 64 69 74 2e 6d | .menuba|r.edit.m|
|00004780| 65 6e 75 2e 7a 6f 6f 6d | 20 22 5a 6f 6f 6d 20 4f |enu.zoom| "Zoom O|
|00004790| 75 74 22 20 30 0a 0a 09 | 23 20 43 6f 70 79 20 74 |ut" 0...|# Copy t|
|000047a0| 68 65 20 6d 61 72 6b 65 | 64 20 61 72 65 61 20 74 |he marke|d area t|
|000047b0| 6f 20 74 68 65 20 74 65 | 6d 70 6f 72 61 72 79 20 |o the te|mporary |
|000047c0| 66 69 6c 65 2e 0a 09 43 | 6f 70 79 20 24 46 49 4c |file...C|opy $FIL|
|000047d0| 45 28 54 4d 50 35 29 0a | 0a 09 23 20 47 65 74 20 |E(TMP5).|..# Get |
|000047e0| 74 68 65 20 6c 6f 77 65 | 72 20 76 61 6c 75 65 64 |the lowe|r valued|
|000047f0| 20 69 6e 73 65 72 74 69 | 6f 6e 20 70 6f 69 6e 74 | inserti|on point|
|00004800| 2e 0a 09 69 66 20 7b 24 | 50 4c 4f 54 28 53 74 61 |...if {$|PLOT(Sta|
|00004810| 72 74 78 29 3c 24 50 4c | 4f 54 28 45 6e 64 78 29 |rtx)<$PL|OT(Endx)|
|00004820| 7d 20 7b 0a 09 09 73 65 | 74 20 74 65 6d 70 20 24 |} {...se|t temp $|
|00004830| 50 4c 4f 54 28 53 74 61 | 72 74 78 29 0a 09 7d 20 |PLOT(Sta|rtx)..} |
|00004840| 65 6c 73 65 20 7b 0a 09 | 09 73 65 74 20 74 65 6d |else {..|.set tem|
|00004850| 70 20 24 50 4c 4f 54 28 | 45 6e 64 78 29 0a 09 7d |p $PLOT(|Endx)..}|
|00004860| 0a 0a 09 23 20 49 6e 63 | 72 6d 65 6e 74 20 74 68 |...# Inc|rment th|
|00004870| 65 20 63 6f 75 6e 74 20 | 6f 66 20 5a 6f 6f 6d 20 |e count |of Zoom |
|00004880| 4c 65 76 65 6c 73 2e 0a | 09 69 6e 63 72 20 50 4c |Levels..|.incr PL|
|00004890| 4f 54 28 5a 6f 6f 6d 43 | 6f 75 6e 74 29 0a 0a 09 |OT(ZoomC|ount)...|
|000048a0| 23 20 53 74 6f 72 65 20 | 74 68 65 20 64 61 74 61 |# Store |the data|
|000048b0| 20 74 6f 20 72 65 63 6f | 6e 73 74 72 75 63 74 20 | to reco|nstruct |
|000048c0| 74 68 69 73 20 6c 65 76 | 65 6c 2c 20 66 6f 72 20 |this lev|el, for |
|000048d0| 5a 6f 6f 6d 20 64 6f 77 | 6e 20 6f 70 65 72 61 74 |Zoom dow|n operat|
|000048e0| 69 6f 6e 2e 0a 09 73 65 | 74 20 50 4c 4f 54 28 5a |ion...se|t PLOT(Z|
|000048f0| 6f 6f 6d 24 50 4c 4f 54 | 28 5a 6f 6f 6d 43 6f 75 |oom$PLOT|(ZoomCou|
|00004900| 6e 74 29 29 20 22 24 50 | 4c 4f 54 28 42 6c 6f 63 |nt)) "$P|LOT(Bloc|
|00004910| 6b 73 69 7a 65 29 20 24 | 50 4c 4f 54 28 4f 66 66 |ksize) $|PLOT(Off|
|00004920| 73 65 74 29 5c 0a 09 09 | 09 24 50 4c 4f 54 28 53 |set)\...|.$PLOT(S|
|00004930| 74 61 72 74 78 29 20 24 | 50 4c 4f 54 28 45 6e 64 |tartx) $|PLOT(End|
|00004940| 78 29 22 0a 0a 09 23 20 | 53 65 74 20 74 68 65 20 |x)"...# |Set the |
|00004950| 69 6e 73 65 72 74 69 6f | 6e 20 70 6f 69 6e 74 73 |insertio|n points|
|00004960| 20 74 6f 20 74 68 65 20 | 73 74 61 72 74 20 61 6e | to the |start an|
|00004970| 64 20 65 6e 64 20 6f 66 | 20 74 68 65 20 70 6c 6f |d end of| the plo|
|00004980| 74 20 77 69 6e 64 6f 77 | 2e 0a 09 73 65 74 20 50 |t window|...set P|
|00004990| 4c 4f 54 28 53 74 61 72 | 74 78 29 20 30 0a 09 73 |LOT(Star|tx) 0..s|
|000049a0| 65 74 20 50 4c 4f 54 28 | 45 6e 64 78 29 20 24 50 |et PLOT(|Endx) $P|
|000049b0| 4c 4f 54 28 57 69 64 74 | 68 29 0a 0a 09 23 20 53 |LOT(Widt|h)...# S|
|000049c0| 74 6f 72 65 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |tore the| number |
|000049d0| 6f 66 20 62 79 74 65 73 | 20 69 6e 20 74 68 65 20 |of bytes| in the |
|000049e0| 73 61 6d 70 6c 65 20 70 | 72 69 6f 72 20 74 6f 20 |sample p|rior to |
|000049f0| 74 68 65 20 70 6f 69 6e | 74 20 6e 6f 77 20 0a 09 |the poin|t now ..|
|00004a00| 23 20 61 74 20 74 68 65 | 20 7a 65 72 6f 20 70 6f |# at the| zero po|
|00004a10| 69 6e 74 20 28 6c 65 66 | 74 29 20 6f 66 20 74 68 |int (lef|t) of th|
|00004a20| 65 20 70 6c 6f 74 20 63 | 61 6e 76 61 73 2e 20 0a |e plot c|anvas. .|
|00004a30| 09 23 20 54 68 69 73 20 | 69 73 20 66 6f 72 20 63 |.# This |is for c|
|00004a40| 6f 70 79 2c 20 63 75 74 | 20 61 6e 64 20 70 61 73 |opy, cut| and pas|
|00004a50| 74 65 20 70 75 72 70 6f | 73 65 73 2e 0a 09 73 65 |te purpo|ses...se|
|00004a60| 74 20 50 4c 4f 54 28 4f | 66 66 73 65 74 29 20 5b |t PLOT(O|ffset) [|
|00004a70| 65 78 70 72 20 24 50 4c | 4f 54 28 4f 66 66 73 65 |expr $PL|OT(Offse|
|00004a80| 74 29 2b 24 74 65 6d 70 | 2a 24 50 4c 4f 54 28 42 |t)+$temp|*$PLOT(B|
|00004a90| 6c 6f 63 6b 73 69 7a 65 | 29 5d 0a 0a 09 23 20 55 |locksize|)]...# U|
|00004aa0| 70 64 61 74 65 20 74 68 | 65 20 65 64 69 74 69 6e |pdate th|e editin|
|00004ab0| 67 20 70 6c 6f 74 20 77 | 69 74 68 20 74 68 65 20 |g plot w|ith the |
|00004ac0| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 74 68 65 20 |contents| of the |
|00004ad0| 74 65 6d 70 6f 72 61 72 | 79 20 66 69 6c 65 2e 0a |temporar|y file..|
|00004ae0| 09 46 69 6c 6c 50 6c 6f | 74 20 69 6e 69 74 20 24 |.FillPlo|t init $|
|00004af0| 46 49 4c 45 28 54 4d 50 | 35 29 0a 09 0a 20 20 23 |FILE(TMP|5)... #|
|00004b00| 20 54 68 65 20 7a 6f 6f | 6d 20 64 6f 77 6e 20 6f | The zoo|m down o|
|00004b10| 70 65 72 61 74 69 6f 6e | 2e 0a 20 20 7d 20 65 6c |peration|.. } el|
|00004b20| 73 65 69 66 20 7b 24 64 | 69 72 65 63 74 69 6f 6e |seif {$d|irection|
|00004b30| 3d 3d 22 64 6f 77 6e 22 | 20 26 26 20 24 50 4c 4f |=="down"| && $PLO|
|00004b40| 54 28 5a 6f 6f 6d 43 6f | 75 6e 74 29 3e 30 7d 20 |T(ZoomCo|unt)>0} |
|00004b50| 7b 0a 0a 09 23 20 44 65 | 63 72 65 6d 65 6e 74 20 |{...# De|crement |
|00004b60| 74 68 65 20 7a 6f 6f 6d | 20 6c 65 76 65 6c 20 63 |the zoom| level c|
|00004b70| 6f 75 6e 74 2e 0a 09 69 | 6e 63 72 20 50 4c 4f 54 |ount...i|ncr PLOT|
|00004b80| 28 5a 6f 6f 6d 43 6f 75 | 6e 74 29 20 2d 31 0a 0a |(ZoomCou|nt) -1..|
|00004b90| 09 23 20 52 65 74 72 69 | 65 76 65 20 74 68 65 20 |.# Retri|eve the |
|00004ba0| 70 72 65 76 69 6f 75 73 | 20 76 69 65 77 27 73 20 |previous| view's |
|00004bb0| 70 61 72 61 6d 65 74 65 | 72 73 2e 0a 09 73 65 74 |paramete|rs...set|
|00004bc0| 20 50 4c 4f 54 28 42 6c | 6f 63 6b 73 69 7a 65 29 | PLOT(Bl|ocksize)|
|00004bd0| 20 09 5b 6c 69 6e 64 65 | 78 20 24 50 4c 4f 54 28 | .[linde|x $PLOT(|
|00004be0| 5a 6f 6f 6d 24 50 4c 4f | 54 28 5a 6f 6f 6d 43 6f |Zoom$PLO|T(ZoomCo|
|00004bf0| 75 6e 74 29 29 20 30 5d | 0a 09 73 65 74 20 50 4c |unt)) 0]|..set PL|
|00004c00| 4f 54 28 4f 66 66 73 65 | 74 29 09 5b 6c 69 6e 64 |OT(Offse|t).[lind|
|00004c10| 65 78 20 24 50 4c 4f 54 | 28 5a 6f 6f 6d 24 50 4c |ex $PLOT|(Zoom$PL|
|00004c20| 4f 54 28 5a 6f 6f 6d 43 | 6f 75 6e 74 29 29 20 31 |OT(ZoomC|ount)) 1|
|00004c30| 5d 0a 09 73 65 74 20 50 | 4c 4f 54 28 53 74 61 72 |]..set P|LOT(Star|
|00004c40| 74 78 29 09 5b 6c 69 6e | 64 65 78 20 24 50 4c 4f |tx).[lin|dex $PLO|
|00004c50| 54 28 5a 6f 6f 6d 24 50 | 4c 4f 54 28 5a 6f 6f 6d |T(Zoom$P|LOT(Zoom|
|00004c60| 43 6f 75 6e 74 29 29 20 | 32 5d 0a 09 73 65 74 20 |Count)) |2]..set |
|00004c70| 50 4c 4f 54 28 45 6e 64 | 78 29 09 09 5b 6c 69 6e |PLOT(End|x)..[lin|
|00004c80| 64 65 78 20 24 50 4c 4f | 54 28 5a 6f 6f 6d 24 50 |dex $PLO|T(Zoom$P|
|00004c90| 4c 4f 54 28 5a 6f 6f 6d | 43 6f 75 6e 74 29 29 20 |LOT(Zoom|Count)) |
|00004ca0| 33 5d 0a 09 23 4d 61 72 | 6b 20 74 68 65 20 61 72 |3]..#Mar|k the ar|
|00004cb0| 65 61 20 64 65 66 69 6e | 65 64 20 62 79 20 74 68 |ea defin|ed by th|
|00004cc0| 65 20 6e 65 77 20 53 74 | 61 72 74 78 20 61 6e 64 |e new St|artx and|
|00004cd0| 20 45 6e 64 78 0a 09 73 | 65 74 20 46 4c 41 47 28 | Endx..s|et FLAG(|
|00004ce0| 4d 61 72 6b 65 64 29 20 | 31 0a 0a 09 23 20 43 6f |Marked) |1...# Co|
|00004cf0| 70 79 20 74 68 65 20 6e | 65 77 20 6d 61 72 6b 65 |py the n|ew marke|
|00004d00| 64 20 61 72 65 61 20 74 | 6f 20 74 68 65 20 74 65 |d area t|o the te|
|00004d10| 6d 70 6f 72 61 72 79 20 | 66 69 6c 65 2e 0a 09 43 |mporary |file...C|
|00004d20| 6f 70 79 20 24 46 49 4c | 45 28 54 4d 50 35 29 0a |opy $FIL|E(TMP5).|
|00004d30| 0a 09 23 20 53 65 74 20 | 74 68 65 20 69 6e 73 65 |..# Set |the inse|
|00004d40| 72 74 69 6f 6e 20 70 6f | 69 6e 74 73 20 74 6f 20 |rtion po|ints to |
|00004d50| 74 68 65 20 73 74 61 72 | 74 20 61 6e 64 20 65 6e |the star|t and en|
|00004d60| 64 20 6f 66 20 74 68 65 | 20 70 6c 6f 74 20 77 69 |d of the| plot wi|
|00004d70| 6e 64 6f 77 2e 09 0a 09 | 73 65 74 20 50 4c 4f 54 |ndow....|set PLOT|
|00004d80| 28 53 74 61 72 74 78 29 | 20 30 0a 09 73 65 74 20 |(Startx)| 0..set |
|00004d90| 50 4c 4f 54 28 45 6e 64 | 78 29 20 24 50 4c 4f 54 |PLOT(End|x) $PLOT|
|00004da0| 28 57 69 64 74 68 29 0a | 0a 09 69 66 20 7b 24 50 |(Width).|..if {$P|
|00004db0| 4c 4f 54 28 5a 6f 6f 6d | 43 6f 75 6e 74 29 7d 20 |LOT(Zoom|Count)} |
|00004dc0| 7b 0a 09 09 23 20 55 70 | 64 61 74 65 20 74 68 65 |{...# Up|date the|
|00004dd0| 20 65 64 69 74 69 6e 67 | 20 70 6c 6f 74 20 77 69 | editing| plot wi|
|00004de0| 74 68 20 74 68 65 20 63 | 6f 6e 74 65 6e 74 73 20 |th the c|ontents |
|00004df0| 6f 66 20 74 68 65 20 74 | 65 6d 70 6f 72 61 72 79 |of the t|emporary|
|00004e00| 20 66 69 6c 65 2e 0a 09 | 09 46 69 6c 6c 50 6c 6f | file...|.FillPlo|
|00004e10| 74 20 69 6e 69 74 20 24 | 46 49 4c 45 28 54 4d 50 |t init $|FILE(TMP|
|00004e20| 35 29 0a 09 7d 20 65 6c | 73 65 20 7b 0a 09 09 23 |5)..} el|se {...#|
|00004e30| 20 55 70 64 61 74 65 20 | 74 68 65 20 65 64 69 74 | Update |the edit|
|00004e40| 69 6e 67 20 70 6c 6f 74 | 20 77 69 74 68 20 74 68 |ing plot| with th|
|00004e50| 65 20 77 68 6f 6c 65 20 | 73 61 6d 70 6c 65 2e 0a |e whole |sample..|
|00004e60| 09 09 46 69 6c 6c 50 6c | 6f 74 0a 09 7d 0a 0a 20 |..FillPl|ot..}.. |
|00004e70| 20 23 20 49 6e 69 74 69 | 61 6c 69 73 61 74 69 6f | # Initi|alisatio|
|00004e80| 6e 2e 0a 20 20 7d 20 65 | 6c 73 65 69 66 20 7b 24 |n.. } e|lseif {$|
|00004e90| 64 69 72 65 63 74 69 6f | 6e 3d 3d 22 69 6e 69 74 |directio|n=="init|
|00004ea0| 22 7d 20 7b 0a 09 23 20 | 53 65 74 20 74 68 65 20 |"} {..# |Set the |
|00004eb0| 5a 6f 6f 6d 20 56 61 72 | 69 61 62 6c 65 73 0a 09 |Zoom Var|iables..|
|00004ec0| 73 65 74 20 50 4c 4f 54 | 28 5a 6f 6f 6d 43 6f 75 |set PLOT|(ZoomCou|
|00004ed0| 6e 74 29 20 09 09 30 0a | 09 73 65 74 20 50 4c 4f |nt) ..0.|.set PLO|
|00004ee0| 54 28 4f 66 66 73 65 74 | 29 09 09 30 0a 09 73 65 |T(Offset|)..0..se|
|00004ef0| 74 20 50 4c 4f 54 28 5a | 6f 6f 6d 30 29 20 09 22 |t PLOT(Z|oom0) ."|
|00004f00| 30 20 30 20 30 20 30 22 | 0a 20 20 7d 0a 0a 20 20 |0 0 0 0"|. }.. |
|00004f10| 23 20 44 69 73 61 62 6c | 65 20 4d 65 6e 75 20 69 |# Disabl|e Menu i|
|00004f20| 74 65 6d 73 20 69 66 20 | 72 65 71 75 69 72 65 64 |tems if |required|
|00004f30| 2e 0a 20 20 69 66 20 7b | 24 50 4c 4f 54 28 42 6c |.. if {|$PLOT(Bl|
|00004f40| 6f 63 6b 73 69 7a 65 29 | 3c 3d 32 7d 20 7b 0a 09 |ocksize)|<=2} {..|
|00004f50| 09 20 4d 65 6e 75 49 74 | 65 6d 44 69 73 61 62 6c |. MenuIt|emDisabl|
|00004f60| 65 20 2e 6d 65 6e 75 62 | 61 72 2e 65 64 69 74 2e |e .menub|ar.edit.|
|00004f70| 6d 65 6e 75 2e 7a 6f 6f | 6d 20 22 5a 6f 6f 6d 20 |menu.zoo|m "Zoom |
|00004f80| 49 6e 22 20 31 7d 0a 20 | 20 69 66 20 7b 24 50 4c |In" 1}. | if {$PL|
|00004f90| 4f 54 28 5a 6f 6f 6d 43 | 6f 75 6e 74 29 3c 3d 30 |OT(ZoomC|ount)<=0|
|00004fa0| 7d 20 7b 20 4d 65 6e 75 | 49 74 65 6d 44 69 73 61 |} { Menu|ItemDisa|
|00004fb0| 62 6c 65 20 2e 6d 65 6e | 75 62 61 72 2e 65 64 69 |ble .men|ubar.edi|
|00004fc0| 74 2e 6d 65 6e 75 2e 7a | 6f 6f 6d 20 22 5a 6f 6f |t.menu.z|oom "Zoo|
|00004fd0| 6d 20 4f 75 74 22 20 31 | 7d 0a 7d 0a 0a 0a 23 23 |m Out" 1|}.}...##|
|00004fe0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00004ff0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00005000| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00005010| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00005020| 23 0a 23 20 49 6e 73 65 | 72 74 0a 23 20 54 68 69 |#.# Inse|rt.# Thi|
|00005030| 73 20 70 72 6f 63 65 64 | 75 72 65 20 69 73 20 74 |s proced|ure is t|
|00005040| 68 65 20 63 61 6c 6c 62 | 61 63 6b 20 74 6f 20 74 |he callb|ack to t|
|00005050| 68 65 20 45 64 69 74 2d | 49 6e 73 65 72 74 20 46 |he Edit-|Insert F|
|00005060| 69 6c 65 20 6d 65 6e 75 | 20 69 74 65 6d 2e 0a 23 |ile menu| item..#|
|00005070| 20 49 74 20 70 61 73 74 | 65 73 20 74 68 65 20 63 | It past|es the c|
|00005080| 6f 6e 74 65 6e 74 73 20 | 6f 66 20 61 20 73 61 6d |ontents |of a sam|
|00005090| 70 6c 65 20 66 69 6c 65 | 20 61 74 20 74 68 65 20 |ple file| at the |
|000050a0| 69 6e 73 65 72 74 69 6f | 6e 20 70 6f 69 6e 74 2e |insertio|n point.|
|000050b0| 0a 70 72 6f 63 20 49 6e | 73 65 72 74 20 7b 7d 20 |.proc In|sert {} |
|000050c0| 7b 0a 09 67 6c 6f 62 61 | 6c 20 46 49 4c 45 0a 0a |{..globa|l FILE..|
|000050d0| 09 23 20 4c 6f 61 64 20 | 61 20 66 69 6c 65 20 69 |.# Load |a file i|
|000050e0| 6e 74 6f 20 74 68 65 20 | 63 6c 69 70 62 6f 61 72 |nto the |clipboar|
|000050f0| 64 20 66 69 6c 65 2e 0a | 09 4c 6f 61 64 20 24 46 |d file..|.Load $F|
|00005100| 49 4c 45 28 54 4d 50 32 | 29 0a 0a 09 23 20 50 61 |ILE(TMP2|)...# Pa|
|00005110| 73 74 65 20 74 68 65 20 | 63 6c 69 70 62 6f 61 72 |ste the |clipboar|
|00005120| 64 20 69 6e 74 6f 20 74 | 68 65 20 77 6f 72 6b 69 |d into t|he worki|
|00005130| 6e 67 20 66 69 6c 65 2e | 0a 09 50 61 73 74 65 0a |ng file.|..Paste.|
|00005140| 7d 0a 0a 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |}..#####|########|
|00005150| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00005160| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00005170| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00005180| 23 23 23 23 23 23 0a 23 | 20 45 64 69 74 4d 65 6e |######.#| EditMen|
|00005190| 75 53 74 61 74 65 73 0a | 23 20 54 68 69 73 20 70 |uStates.|# This p|
|000051a0| 72 6f 63 65 64 75 72 65 | 20 69 73 20 74 68 65 20 |rocedure| is the |
|000051b0| 63 61 6c 6c 62 61 63 6b | 20 74 6f 20 76 61 72 69 |callback| to vari|
|000051c0| 61 62 6c 65 20 74 72 61 | 63 65 73 20 6f 6e 20 65 |able tra|ces on e|
|000051d0| 64 69 74 20 73 74 61 74 | 75 73 20 66 6c 61 67 73 |dit stat|us flags|
|000051e0| 2e 0a 23 20 49 74 20 65 | 6e 61 62 6c 65 73 20 61 |..# It e|nables a|
|000051f0| 6e 64 20 64 69 73 61 62 | 6c 65 73 20 74 68 65 20 |nd disab|les the |
|00005200| 72 65 6c 65 76 61 6e 74 | 20 70 61 72 74 73 20 6f |relevant| parts o|
|00005210| 66 20 74 68 65 20 45 64 | 69 74 20 6d 65 6e 75 20 |f the Ed|it menu |
|00005220| 61 63 63 6f 72 64 69 6e | 67 0a 23 20 74 6f 20 74 |accordin|g.# to t|
|00005230| 68 65 20 73 74 61 74 65 | 20 6f 66 20 74 68 65 20 |he state| of the |
|00005240| 45 64 69 74 65 64 2c 20 | 4d 61 72 6b 65 64 20 61 |Edited, |Marked a|
|00005250| 6e 64 20 43 6c 69 70 62 | 6f 61 72 64 20 46 6c 61 |nd Clipb|oard Fla|
|00005260| 67 73 2e 20 54 68 65 20 | 74 72 61 63 65 73 20 61 |gs. The |traces a|
|00005270| 72 65 20 0a 23 20 64 65 | 66 69 6e 65 64 20 69 6e |re .# de|fined in|
|00005280| 20 74 68 65 20 22 4e 65 | 77 22 20 70 72 6f 63 65 | the "Ne|w" proce|
|00005290| 64 75 72 65 20 6f 66 20 | 74 68 65 20 66 69 6c 65 |dure of |the file|
|000052a0| 20 6d 6f 64 75 6c 65 2e | 20 0a 23 20 54 68 69 73 | module.| .# This|
|000052b0| 20 70 72 6f 63 65 64 75 | 72 65 20 69 73 20 63 61 | procedu|re is ca|
|000052c0| 6c 6c 65 64 20 65 61 63 | 68 20 74 69 6d 65 20 74 |lled eac|h time t|
|000052d0| 68 65 20 66 6c 61 67 73 | 20 61 72 65 20 77 72 69 |he flags| are wri|
|000052e0| 74 74 65 6e 20 74 6f 2e | 0a 23 20 54 68 65 20 70 |tten to.|.# The p|
|000052f0| 61 72 61 6d 65 74 65 72 | 73 20 61 72 65 20 6e 6f |arameter|s are no|
|00005300| 74 20 75 73 65 64 2c 20 | 62 75 74 20 61 72 65 20 |t used, |but are |
|00005310| 72 65 71 75 69 72 65 64 | 20 61 73 20 61 20 74 72 |required| as a tr|
|00005320| 61 63 65 20 63 61 6c 6c | 62 61 63 6b 2e 20 0a 70 |ace call|back. .p|
|00005330| 72 6f 63 20 45 64 69 74 | 4d 65 6e 75 53 74 61 74 |roc Edit|MenuStat|
|00005340| 65 73 20 7b 76 61 72 20 | 77 20 6f 70 7d 20 7b 0a |es {var |w op} {.|
|00005350| 20 20 20 67 6c 6f 62 61 | 6c 20 50 4c 4f 54 20 46 | globa|l PLOT F|
|00005360| 49 4c 45 20 46 4c 41 47 | 0a 0a 20 20 20 69 66 20 |ILE FLAG|.. if |
|00005370| 7b 24 46 4c 41 47 28 45 | 64 69 74 65 64 29 7d 20 |{$FLAG(E|dited)} |
|00005380| 7b 0a 09 4d 65 6e 75 49 | 74 65 6d 44 69 73 61 62 |{..MenuI|temDisab|
|00005390| 6c 65 20 2e 6d 65 6e 75 | 62 61 72 2e 65 64 69 74 |le .menu|bar.edit|
|000053a0| 2e 6d 65 6e 75 20 55 6e | 64 6f 20 30 0a 20 20 20 |.menu Un|do 0. |
|000053b0| 7d 20 65 6c 73 65 20 7b | 0a 09 4d 65 6e 75 49 74 |} else {|..MenuIt|
|000053c0| 65 6d 44 69 73 61 62 6c | 65 20 2e 6d 65 6e 75 62 |emDisabl|e .menub|
|000053d0| 61 72 2e 65 64 69 74 2e | 6d 65 6e 75 20 55 6e 64 |ar.edit.|menu Und|
|000053e0| 6f 20 31 0a 20 20 20 7d | 0a 0a 20 20 20 69 66 20 |o 1. }|.. if |
|000053f0| 7b 24 46 4c 41 47 28 43 | 6c 69 70 29 7d 20 7b 0a |{$FLAG(C|lip)} {.|
|00005400| 09 4d 65 6e 75 49 74 65 | 6d 44 69 73 61 62 6c 65 |.MenuIte|mDisable|
|00005410| 20 2e 6d 65 6e 75 62 61 | 72 2e 65 64 69 74 2e 6d | .menuba|r.edit.m|
|00005420| 65 6e 75 20 50 61 73 74 | 65 20 30 0a 20 20 20 7d |enu Past|e 0. }|
|00005430| 20 65 6c 73 65 20 7b 0a | 09 4d 65 6e 75 49 74 65 | else {.|.MenuIte|
|00005440| 6d 44 69 73 61 62 6c 65 | 20 2e 6d 65 6e 75 62 61 |mDisable| .menuba|
|00005450| 72 2e 65 64 69 74 2e 6d | 65 6e 75 20 50 61 73 74 |r.edit.m|enu Past|
|00005460| 65 20 31 0a 20 20 20 7d | 0a 0a 20 20 20 69 66 20 |e 1. }|.. if |
|00005470| 7b 24 46 4c 41 47 28 4d | 61 72 6b 65 64 29 7d 20 |{$FLAG(M|arked)} |
|00005480| 7b 0a 09 69 66 20 7b 24 | 50 4c 4f 54 28 42 6c 6f |{..if {$|PLOT(Blo|
|00005490| 63 6b 73 69 7a 65 29 3e | 32 20 7d 20 7b 0a 09 09 |cksize)>|2 } {...|
|000054a0| 4d 65 6e 75 49 74 65 6d | 44 69 73 61 62 6c 65 20 |MenuItem|Disable |
|000054b0| 2e 6d 65 6e 75 62 61 72 | 2e 65 64 69 74 2e 6d 65 |.menubar|.edit.me|
|000054c0| 6e 75 2e 7a 6f 6f 6d 20 | 22 5a 6f 6f 6d 20 49 6e |nu.zoom |"Zoom In|
|000054d0| 22 20 30 0a 09 7d 0a 09 | 4d 65 6e 75 49 74 65 6d |" 0..}..|MenuItem|
|000054e0| 44 69 73 61 62 6c 65 20 | 2e 6d 65 6e 75 62 61 72 |Disable |.menubar|
|000054f0| 2e 65 64 69 74 2e 6d 65 | 6e 75 20 43 6f 70 79 20 |.edit.me|nu Copy |
|00005500| 30 0a 09 4d 65 6e 75 49 | 74 65 6d 44 69 73 61 62 |0..MenuI|temDisab|
|00005510| 6c 65 20 2e 6d 65 6e 75 | 62 61 72 2e 65 64 69 74 |le .menu|bar.edit|
|00005520| 2e 6d 65 6e 75 20 44 65 | 6c 65 74 65 20 30 0a 09 |.menu De|lete 0..|
|00005530| 4d 65 6e 75 49 74 65 6d | 44 69 73 61 62 6c 65 20 |MenuItem|Disable |
|00005540| 2e 6d 65 6e 75 62 61 72 | 2e 65 64 69 74 2e 6d 65 |.menubar|.edit.me|
|00005550| 6e 75 20 43 75 74 20 30 | 0a 20 20 20 7d 20 65 6c |nu Cut 0|. } el|
|00005560| 73 65 20 7b 0a 09 0a 09 | 4d 65 6e 75 49 74 65 6d |se {....|MenuItem|
|00005570| 44 69 73 61 62 6c 65 20 | 2e 6d 65 6e 75 62 61 72 |Disable |.menubar|
|00005580| 2e 65 64 69 74 2e 6d 65 | 6e 75 2e 7a 6f 6f 6d 20 |.edit.me|nu.zoom |
|00005590| 22 5a 6f 6f 6d 20 49 6e | 22 20 31 0a 09 4d 65 6e |"Zoom In|" 1..Men|
|000055a0| 75 49 74 65 6d 44 69 73 | 61 62 6c 65 20 2e 6d 65 |uItemDis|able .me|
|000055b0| 6e 75 62 61 72 2e 65 64 | 69 74 2e 6d 65 6e 75 20 |nubar.ed|it.menu |
|000055c0| 43 6f 70 79 20 31 0a 09 | 4d 65 6e 75 49 74 65 6d |Copy 1..|MenuItem|
|000055d0| 44 69 73 61 62 6c 65 20 | 2e 6d 65 6e 75 62 61 72 |Disable |.menubar|
|000055e0| 2e 65 64 69 74 2e 6d 65 | 6e 75 20 44 65 6c 65 74 |.edit.me|nu Delet|
|000055f0| 65 20 31 0a 09 4d 65 6e | 75 49 74 65 6d 44 69 73 |e 1..Men|uItemDis|
|00005600| 61 62 6c 65 20 2e 6d 65 | 6e 75 62 61 72 2e 65 64 |able .me|nubar.ed|
|00005610| 69 74 2e 6d 65 6e 75 20 | 43 75 74 20 31 0a 20 20 |it.menu |Cut 1. |
|00005620| 20 7d 0a 0a 7d 0a 0a 0a | 00 00 00 00 00 00 00 00 | }..}...|........|
|00005630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005680| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005800| 53 73 2f 65 66 66 65 63 | 74 73 2e 74 6b 00 00 00 |Ss/effec|ts.tk...|
|00005810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005860| 00 00 00 00 31 30 30 36 | 34 34 20 00 20 33 32 33 |....1006|44 . 323|
|00005870| 37 35 20 00 20 31 33 31 | 30 34 20 00 20 20 20 20 |75 . 131|04 . |
|00005880| 20 20 37 37 33 31 32 20 | 20 35 37 34 35 37 30 32 | 77312 | 5745702|
|00005890| 31 31 37 20 20 31 31 34 | 34 30 00 20 30 00 00 00 |117 114|40. 0...|
|000058a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000058f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005900| 00 75 73 74 61 72 20 20 | 00 65 65 6e 36 6e 6a 62 |.ustar |.een6njb|
|00005910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a00| 20 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 | #######|########|
|00005a10| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00005a20| 23 23 0a 23 20 54 68 65 | 20 45 66 66 65 63 74 73 |##.# The| Effects|
|00005a30| 20 4d 6f 64 75 6c 65 0a | 23 0a 23 20 50 61 72 74 | Module.|#.# Part|
|00005a40| 20 6f 66 20 74 68 65 20 | 53 68 61 72 70 65 53 6f | of the |SharpeSo|
|00005a50| 75 6e 64 20 45 64 69 74 | 6f 72 0a 23 20 62 79 20 |und Edit|or.# by |
|00005a60| 50 61 75 6c 20 44 2e 20 | 53 68 61 72 70 65 0a 23 |Paul D. |Sharpe.#|
|00005a70| 20 41 20 33 72 64 20 59 | 65 61 72 20 50 72 6f 6a | A 3rd Y|ear Proj|
|00005a80| 65 63 74 20 61 74 20 74 | 68 65 20 55 6e 69 76 65 |ect at t|he Unive|
|00005a90| 72 73 69 74 79 20 6f 66 | 20 4c 65 65 64 73 3b 0a |rsity of| Leeds;.|
|00005aa0| 23 20 44 65 70 61 72 74 | 6d 65 6e 74 20 6f 66 20 |# Depart|ment of |
|00005ab0| 45 6c 65 63 74 72 6f 6e | 69 63 20 61 6e 64 20 45 |Electron|ic and E|
|00005ac0| 6c 65 63 74 72 69 63 61 | 6c 20 45 6e 67 69 6e 65 |lectrica|l Engine|
|00005ad0| 65 72 69 6e 67 2e 0a 23 | 20 44 61 74 65 3a 20 32 |ering..#| Date: 2|
|00005ae0| 37 2f 32 2f 39 35 0a 23 | 0a 23 20 52 65 76 69 73 |7/2/95.#|.# Revis|
|00005af0| 69 6f 6e 3a 32 0a 23 20 | 44 61 74 65 3a 20 31 30 |ion:2.# |Date: 10|
|00005b00| 2f 34 2f 39 35 0a 0a 23 | 20 47 6c 6f 62 61 6c 20 |/4/95..#| Global |
|00005b10| 63 6f 6e 73 74 61 6e 74 | 73 2e 0a 73 65 74 20 46 |constant|s..set F|
|00005b20| 58 28 6c 69 73 74 29 20 | 5b 6c 69 73 74 20 76 6f |X(list) |[list vo|
|00005b30| 6c 75 6d 65 20 72 65 76 | 65 72 73 65 20 74 65 6d |lume rev|erse tem|
|00005b40| 70 6f 20 66 69 6c 74 65 | 72 20 76 69 62 72 61 74 |po filte|r vibrat|
|00005b50| 6f 20 65 63 68 6f 5d 0a | 0a 23 20 47 6c 6f 62 61 |o echo].|.# Globa|
|00005b60| 6c 20 69 6e 69 74 69 61 | 6c 69 73 61 74 69 6f 6e |l initia|lisation|
|00005b70| 73 2e 0a 73 65 74 20 46 | 58 28 56 49 42 44 65 70 |s..set F|X(VIBDep|
|00005b80| 74 68 29 20 35 30 0a 73 | 65 74 20 46 58 28 56 49 |th) 50.s|et FX(VI|
|00005b90| 42 53 70 65 65 64 29 20 | 31 35 0a 73 65 74 20 46 |BSpeed) |15.set F|
|00005ba0| 58 28 46 4c 54 43 65 6e | 74 72 65 29 20 38 30 30 |X(FLTCen|tre) 800|
|00005bb0| 30 0a 73 65 74 20 46 58 | 28 46 4c 54 74 79 70 65 |0.set FX|(FLTtype|
|00005bc0| 29 20 6c 6f 77 0a 73 65 | 74 20 46 58 28 45 43 48 |) low.se|t FX(ECH|
|00005bd0| 44 65 6c 61 79 29 20 35 | 30 0a 73 65 74 20 46 58 |Delay) 5|0.set FX|
|00005be0| 28 45 43 48 56 6f 6c 75 | 6d 65 29 20 35 30 0a 73 |(ECHVolu|me) 50.s|
|00005bf0| 65 74 20 46 58 28 76 6f | 6c 75 6d 65 56 61 6c 29 |et FX(vo|lumeVal)|
|00005c00| 20 30 0a 73 65 74 20 46 | 58 28 74 65 6d 70 6f 56 | 0.set F|X(tempoV|
|00005c10| 61 6c 29 20 30 0a 0a 23 | 23 23 23 23 23 23 23 23 |al) 0..#|########|
|00005c20| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00005c30| 23 0a 23 20 45 66 66 65 | 63 74 42 61 72 20 0a 23 |#.# Effe|ctBar .#|
|00005c40| 20 54 68 69 73 20 70 72 | 6f 63 65 64 75 72 65 20 | This pr|ocedure |
|00005c50| 67 65 6e 65 72 61 74 65 | 73 20 74 68 65 20 65 66 |generate|s the ef|
|00005c60| 66 65 63 74 20 62 61 72 | 20 73 65 63 74 69 6f 6e |fect bar| section|
|00005c70| 20 6f 66 20 53 6f 75 6e | 64 20 53 74 75 64 69 6f | of Soun|d Studio|
|00005c80| 2e 0a 23 20 54 68 65 72 | 65 20 61 72 65 20 33 20 |..# Ther|e are 3 |
|00005c90| 6f 70 74 69 6f 6e 73 2e | 0a 23 20 31 2e 20 69 6e |options.|.# 1. in|
|00005ca0| 69 74 20 09 3a 20 74 68 | 69 73 20 73 65 74 73 20 |it .: th|is sets |
|00005cb0| 75 70 20 20 20 62 75 74 | 20 64 6f 65 73 6e 27 74 |up but| doesn't|
|00005cc0| 20 64 69 73 70 6c 61 79 | 20 74 68 65 6d 2e 0a 23 | display| them..#|
|00005cd0| 20 32 2e 20 73 68 6f 77 | 20 09 3a 20 74 68 69 73 | 2. show| .: this|
|00005ce0| 20 70 61 63 6b 73 2e 0a | 23 20 33 2e 20 6e 6f 73 | packs..|# 3. nos|
|00005cf0| 68 6f 77 20 09 3a 20 74 | 68 69 73 20 75 6e 70 61 |how .: t|his unpa|
|00005d00| 63 6b 73 2e 0a 70 72 6f | 63 20 45 66 66 65 63 74 |cks..pro|c Effect|
|00005d10| 42 61 72 20 7b 20 6f 70 | 74 69 6f 6e 20 7d 20 7b |Bar { op|tion } {|
|00005d20| 0a 20 20 20 67 6c 6f 62 | 61 6c 20 43 6f 6e 66 69 |. glob|al Confi|
|00005d30| 67 53 65 74 20 46 58 20 | 50 41 43 4b 0a 0a 20 20 |gSet FX |PACK.. |
|00005d40| 20 23 20 43 6f 6e 66 69 | 67 75 72 61 74 69 6f 6e | # Confi|guration|
|00005d50| 20 63 6f 6e 73 74 61 6e | 74 73 2e 0a 20 20 20 73 | constan|ts.. s|
|00005d60| 65 74 20 42 6f 72 64 57 | 64 74 68 20 32 0a 20 20 |et BordW|dth 2. |
|00005d70| 20 73 65 74 20 42 75 74 | 74 57 69 64 74 68 20 31 | set But|tWidth 1|
|00005d80| 31 0a 0a 20 20 20 23 20 | 49 6e 69 74 69 61 6c 69 |1.. # |Initiali|
|00005d90| 73 61 74 69 6f 6e 20 6f | 70 74 69 6f 6e 2e 0a 20 |sation o|ption.. |
|00005da0| 20 20 69 66 20 7b 24 6f | 70 74 69 6f 6e 20 3d 3d | if {$o|ption ==|
|00005db0| 20 22 69 6e 69 74 22 20 | 7d 20 7b 0a 0a 20 20 20 | "init" |} {.. |
|00005dc0| 20 20 20 23 20 43 72 65 | 61 74 65 20 74 68 65 20 | # Cre|ate the |
|00005dd0| 77 69 64 67 65 74 73 20 | 69 66 20 74 68 65 79 20 |widgets |if they |
|00005de0| 64 6f 6e 27 74 20 65 78 | 69 73 74 2e 0a 20 20 20 |don't ex|ist.. |
|00005df0| 20 20 20 69 66 20 7b 21 | 5b 77 69 6e 66 6f 20 65 | if {!|[winfo e|
|00005e00| 78 69 73 74 73 20 2e 65 | 66 66 65 63 74 5d 7d 20 |xists .e|ffect]} |
|00005e10| 7b 0a 09 23 20 43 72 65 | 61 74 65 20 74 68 65 20 |{..# Cre|ate the |
|00005e20| 67 65 6e 65 72 61 6c 20 | 66 72 61 6d 65 2e 0a 09 |general |frame...|
|00005e30| 66 72 61 6d 65 20 2e 65 | 66 66 65 63 74 0a 0a 09 |frame .e|ffect...|
|00005e40| 23 20 43 72 65 61 74 65 | 20 74 68 65 20 74 69 74 |# Create| the tit|
|00005e50| 6c 65 20 6c 61 62 65 6c | 2e 0a 09 6c 61 62 65 6c |le label|...label|
|00005e60| 20 2e 65 66 66 65 63 74 | 2e 74 69 74 6c 65 0a 09 | .effect|.title..|
|00005e70| 70 61 63 6b 20 2e 65 66 | 66 65 63 74 2e 74 69 74 |pack .ef|fect.tit|
|00005e80| 6c 65 20 2d 66 69 6c 6c | 20 78 0a 0a 09 23 20 43 |le -fill| x...# C|
|00005e90| 72 65 61 74 65 20 74 68 | 65 20 66 72 61 6d 65 20 |reate th|e frame |
|00005ea0| 74 6f 20 63 6f 6e 74 61 | 69 6e 20 74 68 65 20 74 |to conta|in the t|
|00005eb0| 6f 70 20 72 6f 77 20 6f | 66 20 62 75 74 74 6f 6e |op row o|f button|
|00005ec0| 73 2e 0a 09 66 72 61 6d | 65 20 2e 65 66 66 65 63 |s...fram|e .effec|
|00005ed0| 74 2e 74 6f 70 0a 09 23 | 20 43 72 65 61 74 65 20 |t.top..#| Create |
|00005ee0| 74 68 65 20 74 6f 70 20 | 72 6f 77 20 6f 66 20 65 |the top |row of e|
|00005ef0| 66 66 65 63 74 20 63 68 | 65 63 6b 62 75 74 74 6f |ffect ch|eckbutto|
|00005f00| 6e 73 2e 0a 09 73 65 74 | 20 65 66 66 65 63 74 73 |ns...set| effects|
|00005f10| 20 7b 46 69 6c 74 65 72 | 20 52 65 76 65 72 73 65 | {Filter| Reverse|
|00005f20| 20 45 63 68 6f 20 56 69 | 62 72 61 74 6f 7d 0a 09 | Echo Vi|brato}..|
|00005f30| 66 6f 72 65 61 63 68 20 | 45 66 66 65 63 74 20 24 |foreach |Effect $|
|00005f40| 65 66 66 65 63 74 73 20 | 7b 0a 09 09 73 65 74 20 |effects |{...set |
|00005f50| 65 66 66 65 63 74 20 5b | 73 74 72 69 6e 67 20 74 |effect [|string t|
|00005f60| 6f 6c 6f 77 65 72 20 24 | 45 66 66 65 63 74 5d 0a |olower $|Effect].|
|00005f70| 09 09 63 68 65 63 6b 62 | 75 74 74 6f 6e 20 2e 65 |..checkb|utton .e|
|00005f80| 66 66 65 63 74 2e 74 6f | 70 2e 24 65 66 66 65 63 |ffect.to|p.$effec|
|00005f90| 74 20 0a 09 09 70 61 63 | 6b 20 2e 65 66 66 65 63 |t ...pac|k .effec|
|00005fa0| 74 2e 74 6f 70 2e 24 65 | 66 66 65 63 74 20 2d 73 |t.top.$e|ffect -s|
|00005fb0| 69 64 65 20 6c 65 66 74 | 20 5c 0a 09 09 09 09 09 |ide left| \......|
|00005fc0| 2d 70 61 64 78 20 31 0a | 0a 09 09 23 42 69 6e 64 |-padx 1.|...#Bind|
|00005fd0| 20 62 75 74 74 6f 6e 20 | 33 20 74 6f 20 70 6f 70 | button |3 to pop|
|00005fe0| 20 75 70 20 74 68 65 20 | 77 69 6e 64 6f 77 20 74 | up the |window t|
|00005ff0| 6f 20 73 65 74 20 74 68 | 65 20 73 65 74 74 69 6e |o set th|e settin|
|00006000| 67 73 0a 09 09 62 69 6e | 64 20 2e 65 66 66 65 63 |gs...bin|d .effec|
|00006010| 74 2e 74 6f 70 2e 24 65 | 66 66 65 63 74 20 3c 42 |t.top.$e|ffect <B|
|00006020| 75 74 74 6f 6e 2d 33 3e | 20 22 73 24 45 66 66 65 |utton-3>| "s$Effe|
|00006030| 63 74 22 0a 09 7d 0a 0a | 09 23 20 43 72 65 61 74 |ct"..}..|.# Creat|
|00006040| 65 20 74 68 65 20 66 72 | 61 6d 65 20 74 6f 20 63 |e the fr|ame to c|
|00006050| 6f 6e 74 61 69 6e 20 74 | 68 65 20 62 6f 74 74 6f |ontain t|he botto|
|00006060| 6d 20 72 6f 77 20 6f 66 | 20 62 75 74 74 6f 6e 73 |m row of| buttons|
|00006070| 2e 0a 09 66 72 61 6d 65 | 20 2e 65 66 66 65 63 74 |...frame| .effect|
|00006080| 2e 62 6f 74 74 6f 6d 0a | 0a 09 23 20 43 72 65 61 |.bottom.|..# Crea|
|00006090| 74 65 20 74 68 65 20 62 | 6f 74 74 6f 6d 20 72 6f |te the b|ottom ro|
|000060a0| 77 20 6f 66 20 65 66 66 | 65 63 74 20 63 68 65 63 |w of eff|ect chec|
|000060b0| 6b 62 75 74 74 6f 6e 73 | 2e 0a 09 73 65 74 20 65 |kbuttons|...set e|
|000060c0| 66 66 65 63 74 73 20 7b | 20 54 65 6d 70 6f 20 56 |ffects {| Tempo V|
|000060d0| 6f 6c 75 6d 65 20 7d 0a | 09 66 6f 72 65 61 63 68 |olume }.|.foreach|
|000060e0| 20 45 66 66 65 63 74 20 | 24 65 66 66 65 63 74 73 | Effect |$effects|
|000060f0| 20 7b 0a 09 09 73 65 74 | 20 65 66 66 65 63 74 20 | {...set| effect |
|00006100| 5b 73 74 72 69 6e 67 20 | 74 6f 6c 6f 77 65 72 20 |[string |tolower |
|00006110| 24 45 66 66 65 63 74 5d | 0a 09 09 63 68 65 63 6b |$Effect]|...check|
|00006120| 62 75 74 74 6f 6e 20 2e | 65 66 66 65 63 74 2e 62 |button .|effect.b|
|00006130| 6f 74 74 6f 6d 2e 24 65 | 66 66 65 63 74 20 0a 09 |ottom.$e|ffect ..|
|00006140| 09 23 42 69 6e 64 20 62 | 75 74 74 6f 6e 20 33 20 |.#Bind b|utton 3 |
|00006150| 74 6f 20 70 6f 70 20 75 | 70 20 74 68 65 20 77 69 |to pop u|p the wi|
|00006160| 6e 64 6f 77 20 74 6f 20 | 73 65 74 20 74 68 65 20 |ndow to |set the |
|00006170| 73 65 74 74 69 6e 67 73 | 0a 09 09 62 69 6e 64 20 |settings|...bind |
|00006180| 2e 65 66 66 65 63 74 2e | 62 6f 74 74 6f 6d 2e 24 |.effect.|bottom.$|
|00006190| 65 66 66 65 63 74 20 3c | 42 75 74 74 6f 6e 2d 33 |effect <|Button-3|
|000061a0| 3e 20 22 73 56 6f 6c 54 | 65 6d 70 20 24 45 66 66 |> "sVolT|emp $Eff|
|000061b0| 65 63 74 22 0a 0a 09 09 | 70 61 63 6b 20 09 2e 65 |ect"....|pack ..e|
|000061c0| 66 66 65 63 74 2e 62 6f | 74 74 6f 6d 2e 24 65 66 |ffect.bo|ttom.$ef|
|000061d0| 66 65 63 74 5c 0a 09 09 | 09 20 2d 73 69 64 65 20 |fect\...|. -side |
|000061e0| 6c 65 66 74 20 2d 70 61 | 64 78 20 31 0a 09 7d 0a |left -pa|dx 1..}.|
|000061f0| 0a 09 23 20 43 72 65 61 | 74 65 20 74 68 65 20 50 |..# Crea|te the P|
|00006200| 72 65 76 69 65 77 20 4d | 6f 64 65 20 62 75 74 74 |review M|ode butt|
|00006210| 6f 6e 2e 0a 09 63 68 65 | 63 6b 62 75 74 74 6f 6e |on...che|ckbutton|
|00006220| 20 2e 65 66 66 65 63 74 | 2e 62 6f 74 74 6f 6d 2e | .effect|.bottom.|
|00006230| 70 72 65 76 69 65 77 20 | 2d 76 61 72 69 61 62 6c |preview |-variabl|
|00006240| 65 20 46 58 28 50 72 65 | 76 69 65 77 29 20 2d 61 |e FX(Pre|view) -a|
|00006250| 6e 63 68 6f 72 20 77 5c | 0a 09 09 09 2d 72 65 6c |nchor w\|....-rel|
|00006260| 69 65 66 20 67 72 6f 6f | 76 65 20 2d 74 65 78 74 |ief groo|ve -text|
|00006270| 20 22 50 72 65 76 69 65 | 77 22 0a 09 70 61 63 6b | "Previe|w"..pack|
|00006280| 20 2e 65 66 66 65 63 74 | 2e 62 6f 74 74 6f 6d 2e | .effect|.bottom.|
|00006290| 70 72 65 76 69 65 77 20 | 2d 73 69 64 65 20 6c 65 |preview |-side le|
|000062a0| 66 74 20 2d 70 61 64 78 | 20 31 0a 09 0a 09 23 20 |ft -padx| 1....# |
|000062b0| 43 72 65 61 74 65 20 74 | 68 65 20 41 70 70 6c 79 |Create t|he Apply|
|000062c0| 20 4e 6f 77 20 62 75 74 | 74 6f 6e 0a 09 62 75 74 | Now but|ton..but|
|000062d0| 74 6f 6e 20 2e 65 66 66 | 65 63 74 2e 62 6f 74 74 |ton .eff|ect.bott|
|000062e0| 6f 6d 2e 61 70 70 6c 79 | 20 2d 74 65 78 74 20 22 |om.apply| -text "|
|000062f0| 41 70 70 6c 79 20 4e 6f | 77 21 22 20 5c 0a 09 09 |Apply No|w!" \...|
|00006300| 09 09 2d 63 6f 6d 6d 61 | 6e 64 20 22 46 58 41 70 |..-comma|nd "FXAp|
|00006310| 70 6c 79 22 20 2d 61 6e | 63 68 6f 72 20 63 5c 0a |ply" -an|chor c\.|
|00006320| 09 09 09 09 2d 72 65 6c | 69 65 66 20 67 72 6f 6f |....-rel|ief groo|
|00006330| 76 65 0a 09 70 61 63 6b | 20 2e 65 66 66 65 63 74 |ve..pack| .effect|
|00006340| 2e 62 6f 74 74 6f 6d 2e | 61 70 70 6c 79 20 2d 73 |.bottom.|apply -s|
|00006350| 69 64 65 20 6c 65 66 74 | 20 2d 70 61 64 78 20 33 |ide left| -padx 3|
|00006360| 0a 0a 09 23 20 50 61 63 | 6b 20 74 68 65 20 74 6f |...# Pac|k the to|
|00006370| 70 20 61 6e 64 20 62 6f | 74 74 6f 6d 20 72 6f 77 |p and bo|ttom row|
|00006380| 73 20 6f 66 20 65 66 66 | 65 63 74 73 2e 0a 09 70 |s of eff|ects...p|
|00006390| 61 63 6b 20 2e 65 66 66 | 65 63 74 2e 74 6f 70 20 |ack .eff|ect.top |
|000063a0| 2e 65 66 66 65 63 74 2e | 62 6f 74 74 6f 6d 20 2d |.effect.|bottom -|
|000063b0| 66 69 6c 6c 20 78 20 2d | 65 78 70 61 6e 64 20 31 |fill x -|expand 1|
|000063c0| 0a 20 20 20 20 20 20 7d | 0a 20 20 20 20 20 20 23 |. }|. #|
|000063d0| 20 43 6f 6e 66 69 67 75 | 72 65 20 74 68 65 20 77 | Configu|re the w|
|000063e0| 69 64 67 65 74 73 2e 0a | 0a 20 20 20 20 20 20 23 |idgets..|. #|
|000063f0| 20 43 6f 6e 66 69 67 75 | 72 65 20 74 68 65 20 66 | Configu|re the f|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.